Skip to content

Commit

Permalink
Use terser in test-treeshake command (#21650)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofugaro committed Apr 14, 2021
1 parent be270ae commit 10a33e1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test/*
test/*.cmd
test/unit/build
test/treeshake/index.bundle.js
test/treeshake/index.bundle.min.js


**/node_modules
18 changes: 17 additions & 1 deletion test/rollup.treeshake.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
import resolve from '@rollup/plugin-node-resolve';
import filesize from 'rollup-plugin-filesize';
import { terser } from 'rollup-plugin-terser';

export default [
{
input: 'test/treeshake/index.js',
plugins: [
resolve(),
filesize(),
],
output: [
{
format: 'esm',
file: 'test/treeshake/index.bundle.js'
}
]
},
{
input: 'test/treeshake/index.js',
plugins: [
resolve(),
terser(),
filesize( {
showMinifiedSize: false,
} ),
],
output: [
{
format: 'esm',
file: 'test/treeshake/index.bundle.min.js'
}
]
}
];

0 comments on commit 10a33e1

Please sign in to comment.