Skip to content

Commit

Permalink
chore(NA): remove compress from dll minimizer (elastic#57023)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Feb 7, 2020
1 parent 8afc723 commit 5246daa
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions src/optimize/dynamic_dll_plugin/dll_config_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,36 +228,7 @@ function optimized(config) {
cache: false,
extractComments: false,
terserOptions: {
compress: {
// The following is required for dead-code the removal
// check in React DevTools
//
// default
unused: true,
dead_code: true,
conditionals: true,
evaluate: true,

// changed
keep_fnames: true,
keep_infinity: true,
comparisons: false,
sequences: false,
properties: false,
drop_debugger: false,
booleans: false,
loops: false,
toplevel: false,
top_retain: false,
hoist_funs: false,
if_return: false,
join_vars: false,
collapse_vars: false,
reduce_vars: false,
warnings: false,
negate_iife: false,
side_effects: false,
},
compress: false,
mangle: false,
},
}),
Expand Down

0 comments on commit 5246daa

Please sign in to comment.