diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-30 15:01:33 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-01 11:35:11 +0800 |
commit | cdd0f2bef5c522eb6809ba58d7d9adc2eb4bd6b3 (patch) | |
tree | 845f4dfa26133a834aed97d030ae39bfa67dca5a /rollup.config.js | |
parent | 76262059d4b53d32ca7929f6b823e211186767c4 (diff) |
chore(build): add bundle stat for dev
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js index 1f46f2a..75db905 100644 --- a/rollup.config.js +++ b/rollup.config.js | |||
@@ -3,6 +3,7 @@ import commonjs from '@rollup/plugin-commonjs'; | |||
3 | import terser from '@rollup/plugin-terser'; | 3 | import terser from '@rollup/plugin-terser'; |
4 | import { existsSync } from 'fs'; | 4 | import { existsSync } from 'fs'; |
5 | import { join } from 'path'; | 5 | import { join } from 'path'; |
6 | import { bundleStats } from 'rollup-plugin-bundle-stats'; | ||
6 | 7 | ||
7 | const production = !process.env.ROLLUP_WATCH; | 8 | const production = !process.env.ROLLUP_WATCH; |
8 | 9 | ||
@@ -53,6 +54,7 @@ const general = { | |||
53 | node(), | 54 | node(), |
54 | commonjs(), | 55 | commonjs(), |
55 | production && terser(), | 56 | production && terser(), |
57 | // bundleStats(), | ||
56 | ], | 58 | ], |
57 | } | 59 | } |
58 | 60 | ||