All Versions
76
Latest Version
Avg Release Cycle
3 days
Latest Release
1203 days ago

Changelog History
Page 3

  • v5.0.0-rc.5 Changes

    October 09, 2020

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  fix crash in getNumberOfMatchingSizeTypes
    • ๐Ÿ›  fix crash in SideEffectsFlagPlugin
    • ๐Ÿ›  fix crash when using runtimeChunk and Module Federation shared
    • โž• add some missing type exports

    Migration

    • ๐Ÿ‘Œ improve Node.js polyfill message
  • v5.0.0-rc.4 Changes

    October 07, 2020

    ๐Ÿ”‹ 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
  • v5.0.0-rc.3 Changes

    September 30, 2020

    ๐Ÿ›  Bugfixes

    • delete x.y.z now also works in concatenated modules
    • ๐Ÿ‘ folder and file names containing # are now supported
  • v5.0.0-rc.2 Changes

    September 29, 2020

    ๐Ÿ”‹ Features

    • [Stats] do not display loader prefix for modules in bold
    • ๐Ÿฑ [Stats] improve grouping by path for modules and assets
    • โž• add optimization.splitChunks.defaultSizeTypes to specify size types considered for sizes when only a number is specified
      • this allows plugins to add default size types

    ๐Ÿ›  Bugfixes

    • ๐Ÿฑ [Stats] fix some space calculation issues for assets and modules space limit
    • [Stats] fix filtered item count
    • โœ‚ remove error when watch option is used without callback and show a deprecation message instead.
  • v5.0.0-rc.1 Changes

    September 28, 2020

    ๐Ÿ’ฅ Breaking Changes

    • 0๏ธโƒฃ uses target: "browserslist" as default when a browserslist config has been found, otherwise fallback to target: "web" as usual
      • This could have unexpected changed to the EcmaScript version of the generated code
      • In same cases this might causes builds to fail because browserslist contain web and node versions
      • In most cases we expect this to simplify migration while still allowing to generate better code
      • This partially reverts a breaking change: Instead of changing the generated code from ES5 to ES6, this now changes it from ES5 to an automatic version depending on browserslist when available

    ๐Ÿ”‹ Features

    • โž• add support for target: "browserslist" and more advanced options
    • ๐Ÿ”ฆ expose more classes as needed by plugins
    • โž• add Compiler.watching
    • โž• add parser.worker for javascript files to allow to modify which syntax is special for WebWorker support
    • ๐Ÿ‘ allow output.chunkFilename to be a function via schema
    • ๐Ÿ‘ allow RegExp for watchOptions.ignored via schema
    • โž• add resolve.preferRelative option, which allows to resolve module requests also as relative requests

    Migration

    • โž• add more hints regarding breaking changes in config
    • ๐Ÿ‘Œ improve deprecation layer for Array -> Set to allow accessing the first index
    • ๐Ÿ‘ allow to use splitChunks name to move modules to an parent chunk

    ๐Ÿ›  Bugfixes

    • avoid some errors in dependencies when target module failed
    • when min(Remaingin)Size is violated, use only modules that are fine, instead of failing for all modules
    • ๐Ÿ›  fix infinite recursion when having a circular symlink and a context containing it
    • โš  warning for importing an disposed module displays the correct module
    • ๐Ÿ›  fix too wide hash for javascript chunks that caused unnecessary invalidation of the rendered files
    • ๐Ÿ›  fix new URL("relative/file.png", import.meta.url) to resolve relative
    • โšก๏ธ update webpack-sources to fix crash with source "." is not in SourceMap
    • ๐Ÿ›  fix stack overflow in resolving
  • v5.0.0-rc.0 Changes

    September 20, 2020

    Full Changelog

    Known Problems

    • delete x.y.z doesn't work with optimization.concatenateModules: true yet.
    • ๐Ÿ”Œ mini-css-extract-plugin is not fully compatible and there a few problems.
    • 0๏ธโƒฃ html-webpack-plugin doesn't understand the new default automatic publicPath yet. Use output.publicPath: "" instead.
    • ๐Ÿ’ป target doesn't support individual browser versions yet. Use the general targets for now: target: ["web", "es2020"]
    • The stable webpack-cli shows too verbose output for schema validation problems.
    • new URL with string not starting with ./ or ../ works incorrectly
    • The stats grouping algorithm need still some fine-tuning
  • v5.0.0-beta.33 Changes

    September 20, 2020

    ๐Ÿ”„ Changes

    • ๐Ÿ—„ deprecate stats.warningsFilter in favor of ignoreWarnings
      • We need to filter warnings earlier and not only for display, e. g. for correct ignoring in hasWarnings()

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  fix missing fileDependencies for managed items
  • v5.0.0-beta.32 Changes

    September 18, 2020

    ๐Ÿ”‹ Features

    • ๐Ÿฑ sort assets by size
    • โšก๏ธ update all dependencies to stable versions only
    • 0๏ธโƒฃ output.publicPath is now "auto" by default when supported by target
    • โž• add output.publicPath: "auto" to determine publicPath automatically

    ๐Ÿ›  Bugfixes

    • avoid error for managed paths that only contain a node_modules
  • v5.0.0-beta.31 Changes

    September 17, 2020

    ๐Ÿ”‹ Features

    • ๐Ÿ”จ refactor module concatenation to be more flexible
      • support non-namespace exports
      • allow to concatenate externals
      • allow to concatenate json modules
    • โž• add a breaking change hint when modules can't be resolve because requests are expected to be fully specified
    • โž• add support for imports field in package.json
    • โž• add resolve.fallback option and recommend that for polyfilling

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  fixes parsing of this when in an arrow IIFE
    • ๐Ÿ›  fix caching in RealContentHashPlugin when assets contain their own hash
    • ๐Ÿ›  fix chunk group connections for cases where referenced chunk group is sometimes already included
    • [Module Federation] fix circular references of containers when using async externals
      • fixes a hanging promise
    • [Module Federation] fix circular dependencies of modules between containers
      • fixes another hanging promise
    • [Module Federation] fix crash when no sharing is used in the container at all

    ๐ŸŽ Performance

    • ๐Ÿ‘Œ improve performance of deprecated needRebuild method

    ๐Ÿ—„ Deprecations

    • ๐Ÿ—„ officially deprecate needRebuild in favor of needBuild
  • v5.0.0-beta.30 Changes

    September 11, 2020

    Highlights

    • ๐Ÿš€ There will be a Release Candidate soon
      • See #11406 for a list of outstanding items
    • new URL("...", import.meta.url) is treated as dependency and creates an asset module
    • ๐Ÿ‘ท Worker support
      • new Worker(new URL("...", import.meta.url)) creates a WebWorker (same for new SharedWorker)
      • known issue: type: "module" doesn't work yet
      • navigator.serviceWorker.register(new URL("...", import.meta.url)) creates a ServiceWorker
    • ๐Ÿ‘Œ Improved target
      • target option allows versions, e. g. target: "node10.13" or target: "es2020"
      • target allows an array of targets, e. g. target: ["web", "es2020"]

    ๐Ÿ”‹ Features

    • Stats improvements
      • Group assets and modules in stats text output by default to keep within space limit
      • asset modules are enabled by default (type: "asset")
      • Put name, version, time, errors/warnings and hash in a single line as summary in the stats
    • ๐Ÿ‘ท Use output.wasmLoading (and output.workerWasmLoading) to specify the wasm loading method (similar to output.chunkLoading)
    • ๐Ÿ†• New option externalsPreset with presets for externals for
      • node
      • nwjs (deprecated)
      • electronMain
      • electronPreload
      • electronRenderer
      • web
      • webAsync
      • defaults choosen based on targets
    • 0๏ธโƒฃ mjs experiment is enabled by default
      • .mjs and .js with type: "module" in package.json puts ESM in strict mode
      • no CommonJs allowed
      • extensions are required in imports
      • no named exports of non-esm modules
      • no __esModule support (will be added once this landed in node.js)
      • .cjs and .js with type: "commonjs" in package.json disables ESM support
      • .wasm with type: "module" in package.json also makes extensions required in wasm imports
    • output.ecmaVersion is replaced with output.environment which lists features used by webpack

    ๐Ÿ”„ Changes

    • Stats improvements
      • Hide hash by default in stats
      • Hide entrypoints in stats by default when unnecessary
      • Show only files count in entrypoints when there are too many files
      • Hide auxiliary files for entrypoints in stats by default

    ๐Ÿ›  Bugfixes

    • ๐Ÿ‘Œ improve ASI handling to avoid Object(...) wrapping
    • ๐Ÿ›  fix incorrect disposing of modules when a whole chunk is removed during Hot Module Replacement