Features
optimization.sideEffects
will detect simple cases of modules without side effects from the source code now- supported: class and function declarations, variable declarations with pure init expression,
if
,while
,for
,switch
,export
,import
, function calls with pure flag
- supported: class and function declarations, variable declarations with pure init expression,
- added a "transitive only" side effects mode which drops the module but keeps dependencies
- This is useful for mini-css-extract-plugin to allow droping the extracted JS, while keeping the CSS dependencies
Bugfixes
- accessing properties of the prototype from imported modules is now possible. They are no longer incorrectly mangled.
Dependencies
- update schema-utils to major 3
- update acorn to major 8