Skip to content

Commit

Permalink
feat: Merge pull request #737 from atom-minimap/minimap-element-module
Browse files Browse the repository at this point in the history
feat: optimizations in MinimapElement
  • Loading branch information
aminya authored Dec 29, 2020
2 parents 9e4b2f5 + 4722d21 commit 345f5d1
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 311 deletions.
30 changes: 30 additions & 0 deletions .terserrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const isDev = process.env.NODE_ENV !== "production"

module.exports = {
// "module": false, // controlled by Parcel
"compress": {
"ecma": "2018", // Change based on the target
// "toplevel": true, // controlled by Parcel
"hoist_vars": false,
"hoist_funs": true,
"pure_getters": true,
"unsafe": true,
"unsafe_arrows": true,
"unsafe_comps": true,
"unsafe_Function": true,
"unsafe_math": true,
"unsafe_symbols": true,
"unsafe_methods": true,
"unsafe_proto": true,
"unsafe_regexp": true,
"unsafe_undefined": true,
"passes": isDev ? 0 : 2,
},
"parse": {
"ecma": 2020
},
"mangle": !isDev,
"format": {
"beautify": isDev
},
}
Loading

0 comments on commit 345f5d1

Please sign in to comment.