Skip to content

Commit ac69f4a

Browse files
committed
fix: remove ecma options
1 parent 716f97c commit ac69f4a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/get-terserrc.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export function getTerserOptions(NODE_ENV: string = "production", BABEL_ENV: str
1111
"@atom.inSpecMode": !isTest ? "() => false" : "() => true",
1212
"@atom.inDevMode": !isDev ? "() => false" : "() => true",
1313
},
14-
ecma: "2018",
1514
toplevel: true,
1615
hoist_vars: false,
1716
hoist_funs: true,
@@ -26,15 +25,12 @@ export function getTerserOptions(NODE_ENV: string = "production", BABEL_ENV: str
2625
unsafe_proto: true,
2726
unsafe_regexp: true,
2827
unsafe_undefined: true,
29-
passes: 3,
28+
passes: 2,
3029
}
3130

3231
const TerserOptions = {
3332
// "module": false, // controlled by Parcel
3433
compress: isDev ? false : ProductionCompress,
35-
parse: {
36-
ecma: 2020,
37-
},
3834
mangle: isReadable ? false : true,
3935
format: {
4036
beautify: isReadable,

0 commit comments

Comments
 (0)