Skip to content

Commit

Permalink
Use rollup-plugin-terser
Browse files Browse the repository at this point in the history
  • Loading branch information
Elton Leong committed Jul 8, 2022
1 parent 8ca29ce commit 822bf24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"tslib": "^2.0.3",
"typescript": "^4.1.3"
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import commonjs from 'rollup-plugin-commonjs';
import typescript from 'rollup-plugin-typescript2';
import copy from 'rollup-plugin-copy';
import pkg from './package.json';
import { terser } from 'rollup-plugin-terser';

export default {
input: 'src/index.ts',
Expand All @@ -26,5 +27,6 @@ export default {
extensions: ['.ts', '.js', '.tsx', '.jsx'],
}),
commonjs(),
terser(),
],
};

0 comments on commit 822bf24

Please sign in to comment.