Skip to content

Commit e0bd88b

Browse files
committed
Rollup config cleanup
1 parent d8e3ce6 commit e0bd88b

File tree

3 files changed

+7
-61
lines changed

3 files changed

+7
-61
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@babel/preset-env": "^7.15.4",
2222
"@babel/preset-typescript": "^7.15.0",
2323
"@rollup/plugin-babel": "^5.3.0",
24-
"@rollup/plugin-commonjs": "^20.0.0",
2524
"@rollup/plugin-node-resolve": "^13.0.4",
2625
"@rollup/plugin-replace": "^3.0.0",
2726
"@rollup/plugin-url": "^6.1.0",

pnpm-lock.yaml

Lines changed: 0 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.js

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import resolve from '@rollup/plugin-node-resolve';
22
import babel from '@rollup/plugin-babel';
3-
// import commonjs from '@rollup/plugin-commonjs';
43
import replace from '@rollup/plugin-replace';
54
import url from '@rollup/plugin-url';
65
import hotcss from 'rollup-plugin-hot-css';
@@ -28,36 +27,20 @@ let config = {
2827
}),
2928
resolve({ extensions, browser: true }),
3029
babel({ extensions, babelHelpers: 'bundled' }),
31-
// commonjs(),
3230
url(),
3331
isProduction &&
3432
static_files({
3533
include: ['./public'],
3634
}),
37-
terser({
38-
compress: {
39-
global_defs: {
40-
module: false,
35+
isProduction &&
36+
terser({
37+
compress: {
38+
global_defs: {
39+
module: false,
40+
},
4141
},
42-
},
43-
}),
42+
}),
4443
],
4544
};
4645

47-
// if (process.env.NODE_ENV === 'production') {
48-
// config.plugins = [
49-
// ...config.plugins,
50-
// static_files({
51-
// include: ['./public'],
52-
// }),
53-
// terser({
54-
// compress: {
55-
// global_defs: {
56-
// module: false,
57-
// },
58-
// },
59-
// }),
60-
// ];
61-
// }
62-
6346
export default config;

0 commit comments

Comments
 (0)