aboutsummaryrefslogtreecommitdiffhomepage
path: root/rollup.config.js
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-09-30 15:01:33 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-01 11:35:11 +0800
commitcdd0f2bef5c522eb6809ba58d7d9adc2eb4bd6b3 (patch)
tree845f4dfa26133a834aed97d030ae39bfa67dca5a /rollup.config.js
parent76262059d4b53d32ca7929f6b823e211186767c4 (diff)
chore(build): add bundle stat for dev
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js2
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';
3import terser from '@rollup/plugin-terser'; 3import terser from '@rollup/plugin-terser';
4import { existsSync } from 'fs'; 4import { existsSync } from 'fs';
5import { join } from 'path'; 5import { join } from 'path';
6import { bundleStats } from 'rollup-plugin-bundle-stats';
6 7
7const production = !process.env.ROLLUP_WATCH; 8const 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