Skip to content

Commit 9928579

Browse files
committed
simplify terser for rollup
1 parent 6722849 commit 9928579

File tree

17 files changed

+17
-53
lines changed

17 files changed

+17
-53
lines changed

frameworks/keyed/alpine/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { terser } from "rollup-plugin-terser";
44
const plugins = [resolve()];
55

66
if (process.env.production) {
7-
plugins.push(terser({ output: { comments: false } }));
7+
plugins.push(terser());
88
}
99

1010
export default {

frameworks/keyed/crank/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const plugins = [
1313
];
1414

1515
if (!development) {
16-
plugins.push(terser({ output: { comments: false } }));
16+
plugins.push(terser());
1717
}
1818

1919
export default {

frameworks/keyed/fullweb-helpers/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export default {
44
input: `src/index.js`,
55
output: { file: `dist/index.js`, format: 'iife' },
66
plugins: [
7-
terser({ warnings: true, mangle: { module: true } })
7+
terser()
88
]
99
};

frameworks/keyed/fullweb-template/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export default {
44
input: `src/index.js`,
55
output: { file: `dist/index.js`, format: 'iife' },
66
plugins: [
7-
terser({ warnings: true, mangle: { module: true } })
7+
terser()
88
]
99
};

frameworks/keyed/inferno/rollup.config.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,7 @@ const plugins = [
3131
];
3232

3333
if (isProduction) {
34-
plugins.push(terser({
35-
parse: {
36-
ecma: 8,
37-
},
38-
compress: {
39-
ecma: 5,
40-
inline: true,
41-
if_return: false,
42-
reduce_funcs: false,
43-
passes: 5,
44-
comparisons: false,
45-
},
46-
output: {
47-
ecma: 5,
48-
comments: false,
49-
},
50-
toplevel: true,
51-
module: true,
52-
}));
34+
plugins.push(terser());
5335
}
5436

5537
// When in development, we want to use dev build of inferno.

frameworks/keyed/ko-jsx/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const plugins = [
1616
];
1717

1818
if (process.env.production) {
19-
plugins.push(terser({ output: { comments: false } }));
19+
plugins.push(terser());
2020
}
2121

2222
export default {

frameworks/keyed/lit-html/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export default {
66
output: { file: `dist/index.js`, format: 'iife' },
77
plugins: [
88
minifyHTML(),
9-
terser({ warnings: true, mangle: { module: true } })
9+
terser()
1010
]
1111
};

frameworks/keyed/lit/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export default {
1010
resolve(),
1111
minifyHTML(),
1212
typescript({ typescript: require('typescript'), clean: true }),
13-
terser({ warnings: true, mangle: { module: true } }),
13+
terser(),
1414
],
1515
};

frameworks/keyed/marionette-backbone/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const plugins = [
1717
];
1818

1919
if (process.env.production) {
20-
plugins.push(terser({ output: { comments: false } }));
20+
plugins.push(terser());
2121
}
2222

2323
export default {

frameworks/keyed/mobx-jsx/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const plugins = [
1616
];
1717

1818
if (process.env.production) {
19-
plugins.push(terser({ output: { comments: false } }));
19+
plugins.push(terser());
2020
}
2121

2222
export default {

0 commit comments

Comments
 (0)