1
0
Fork 0

chore: Remove terser from rollup config

This commit is contained in:
Joost De Cock 2021-06-13 12:32:28 +02:00
parent c0e61756cb
commit 68854b0e66
157 changed files with 492 additions and 584 deletions

View file

@ -2,25 +2,29 @@ import babel from '@rollup/plugin-babel'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import { terser } from 'rollup-plugin-terser'
import { name, version, description, author, license } from './package.json'
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
export default {
input: 'src/index.js',
output: [
{
banner,
file: 'dist/index.js',
format: 'cjs',
sourcemap: true,
exports: 'default'
},
{
banner,
file: 'dist/index.mjs',
format: 'es',
sourcemap: true,
exports: 'default'
},
{
banner,
file: 'tests/dist/index.js',
format: 'cjs',
sourcemap: true,
@ -35,10 +39,5 @@ export default {
resolve(),
json(),
commonjs(),
terser({
output: {
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
}
})
]
}