yarn webpack 5.0.0-rc.4

latest releases: 5.91.0, 5.90.3, 5.90.2...
3 years ago

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
  • 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

Don't miss a new webpack release

NewReleases is sending notifications on new releases.