Skip to content

webpack 4.0.0-alpha.1 feedback #6132

@sokra

Description

@sokra

Changelog diff from 4.0.0-alpha.0

Big features

  • Upgrade uglifyjs-webpack-plugin to v1
    • ES15 support
  • optimization.minimize has been added to switch minimizing on/off
    • By default: on in production mode, off in development mode
  • optimization.minimizer has been added to configurate minimizers and options
  • CLI has been move to webpack-cli, you need to install webpack-cli to use the CLI
  • The ProgressPlugin (--progress) now displays plugin names
    • At least for plugins migrated to the new plugin system

Features

  • Parser now understand new Foo() expressions
  • Parser can now evaluate **, &, |, ^, >>>, >>, << and ~
  • Rule.ident is now allowed by schema
  • constant replacements now don't need __webpack_require__ and argument is omitted
  • The concatenated module now generates a bit less code
  • sideEffects can be overriden via module.rules

Bugfixes

  • WebAssembly modules are now correctly threaded as ESM modules and export their exports directly instead of wrapping the content in a default export
  • Extensions are resolved normally in *.mjs again

Breaking changes for Plugin authors

  • Methods on Template are now static
  • A new RuntimeTemplate class has been added and outputOptions and requestShortener has been moved to this class
    • Many methods has been updated to use the RuntimeTemplate instead
    • We plan to move code which accesses the runtime to this new class
  • Module.meta has been replaced with Module.buildMeta
  • Module.buildInfo and Module.factoryMeta have been added
  • Some properties of Module have been moved into the new objects

Please comment if you find additional changes not in the changelog

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions