We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d9ec4 commit b3d00afCopy full SHA for b3d00af
.terserrc.js
@@ -0,0 +1,30 @@
1
+const isDev = process.env.NODE_ENV !== "production"
2
+
3
+module.exports = {
4
+ // "module": false, // controlled by Parcel
5
+ "compress": {
6
+ "ecma": "2018", // Change based on the target
7
+ // "toplevel": true, // controlled by Parcel
8
+ "hoist_vars": true,
9
+ "hoist_funs": true,
10
+ "pure_getters": true,
11
+ "unsafe": true,
12
+ "unsafe_arrows": true,
13
+ "unsafe_comps": true,
14
+ "unsafe_Function": true,
15
+ "unsafe_math": true,
16
+ "unsafe_symbols": true,
17
+ "unsafe_methods": true,
18
+ "unsafe_proto": true,
19
+ "unsafe_regexp": true,
20
+ "unsafe_undefined": true,
21
+ "passes": isDev ? 0 : 2,
22
+ },
23
+ "parse": {
24
+ "ecma": 2020
25
26
+ "mangle": !isDev,
27
+ "format": {
28
+ "beautify": isDev
29
30
+}
0 commit comments