Skip to content

Commit 96cf6c1

Browse files
size(code): unsafe TerserPlugin transformations seems to pass tests
1 parent 68f1f37 commit 96cf6c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build/webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ module.exports = (env = {}, { mode = 'production' }) => {
107107
arrows: caniuse.isSupported('arrow-functions', targetsBrowsers),
108108
ecma: caniuse.isSupported('es6', targetsBrowsers) ? '2015' : '5', // note ECMAScript 2015 is the sixth edition of the ECMAScript Language Specification standard
109109
} : {},
110+
unsafe: true,
111+
unsafe_comps: true,
112+
unsafe_Function: true,
113+
unsafe_math: true,
114+
unsafe_symbols: true,
115+
unsafe_methods: caniuse.isSupported('es6', targetsBrowsers),
116+
unsafe_proto: true,
117+
unsafe_regexp: true,
118+
unsafe_undefined: true,
110119
},
111120
},
112121
}),

0 commit comments

Comments
 (0)