Skip to content

Commit 345f5d1

Browse files
authored
feat: Merge pull request #737 from atom-minimap/minimap-element-module
feat: optimizations in MinimapElement
2 parents 9e4b2f5 + 4722d21 commit 345f5d1

File tree

5 files changed

+355
-311
lines changed

5 files changed

+355
-311
lines changed

.terserrc.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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": false,
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

Comments
 (0)