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

Changelog History
Page 6

  • v5.0.0-alpha.23 Changes

    August 27, 2019

    ๐Ÿš€ (based on 4.39.3)

    ๐Ÿ”‹ Features

    • โž• add option output.ecmaVersion to specify level of generated code emitted by webpack
      • By using arrow functions we can emit smaller code, i. e. for exports
      • By using const variables we can emit more correct code for export default

    ๐Ÿ”„ Changes

    • 0๏ธโƒฃ (BREAKING) changed default of output.ecmaVersion from implict 5 to 2015
      • This might be incompatible with some older browser.
      • If you need support for these browser use output.ecmaVersion: 5.

    Full Changelog

    Feedback

  • v5.0.0-alpha.22 Changes

    August 23, 2019

    ๐Ÿš€ (based on 4.39.2)

    ๐Ÿ‘Œ Improvements

    • ๐Ÿ‘Œ Improve ASI detection to avoid Object(...) in favor of (0,...)
      • This improves bundles size
    • Merge multiple exports via __webpack_require__.d into a single statement
      • This improves bundles size

    Full Changelog

    Feedback

  • v5.0.0-alpha.21 Changes

    August 22, 2019

    ๐Ÿš€ (based on 4.39.2)

    ๐Ÿ”‹ Features

    • โฌ†๏ธ Upgrade to acorn 7
    • Persistent Caching
      • track dependencies while resolving build dependencies to snapshot them
      • when build dependencies resolving snapshot is invalid, re-resolve build dependencies to see if something changed
      • new option cache.immutablePaths, similar to cache.managedPaths but assumes that existing content of this folder never changes. Defaults to yarn cache when PnP is used.
      • cache.cacheDirectory defaults to node_modules/.cache/webpack when package.json exists somewhere above cwd, .pnp/.cache/webpack when .pnp.js exists, .cache/webpack otherwise.
    • add __webpack_exports_info__ module API

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  fix a bug where external default imports in concatenated modules where incorrectly generated
    • ๐Ÿ‘Œ improve usage/provision info for nested exports

    Full Changelog

    Feedback

  • v5.0.0-alpha.20 Changes

    August 14, 2019

    ๐Ÿš€ (based on 4.39.2)

    ๐ŸŽ Performance

    • Compilation/NormalModuleFactory.file/context/missingDependencies are now LazySets
    • ๐ŸŽ Performance improvements in deserialization
    • ๐ŸŽ Performance improvements in module graph building

    ๐Ÿ”‹ Features

    • โž• add cache.managedPaths. It is an array of package-manager only managed paths. webpack will avoid hashing/timestamping them, assume the version is unique and will use this as snapshot (for both memory and filesystem cache).
      • These must be node_modules directories.
      • cache.managedPaths defaults to the node_modules directory webpack is inside of.
    • โž• add cache.buildDependencies. It is an object of arrays of additional code dependencies of the build. webpack will use an hash of these items and all dependencies to invalidate the filesystem cache.
      • cache.buildDependencies.defaultWebpack defaults to webpack/lib to get webpack and all dependencies.
      • It's recommended to set cache.buildDependencies.config: [__filename] in webpack.config.js to get the config and all dependencies.

    ๐Ÿ”„ Changes

    • ๐Ÿ‘‰ Use [email protected] for schema validation
    • ๐ŸŒฒ Persistent Caching uses the infrastructureLogger for logging

    Removals

    • โœ‚ remove cache.loglevel
      • Use infrastructureLogging.level instead

    Full Changelog

    Feedback

  • v5.0.0-alpha.19 Changes

    August 06, 2019

    ๐Ÿ”‹ Features

    • โž• add afterDone hook to Compiler
    • โฌ†๏ธ upgrade watchpack, which adds watchOptions.followSymlinks
    • experimental -> experiments
      • rename webassembly/async-experimental to webassembly/async
      • rename webassembly/experimental to webassembly/sync
      • add experiments.syncWebAssembly
      • add experiments.asyncWebAssembly
    • โž• add asset module type experiment
      • add experiments.asset
      • add output.assetModuleFilename (string or function)
      • add type: "asset" for asset module type in rules
      • add asset examples
    • ๐Ÿฑ separate between files and auxiliaryFiles for chunk assets
      • normal files: JS, CSS (tags need to be added for entrypoints)
      • auxiliary files: WASM, assets, any loader emitted file (no tags need to be added for entrypoints)
      • auxiliary files are displayed in brackets in Stats
    • ๐Ÿ”Œ Some core implementations and plugins do some time and statistics logging now (try stats.loggingDebug: /webpack/)
    • โž• add Compilation.hooks.stillValidModule similar to failedModule and succeedModule when a module has been taken from cache

    ๐Ÿ›  Bugfixes

    • undefined values are now ignored in rules
    • ๐Ÿ›  fix schema of resolve.alias when array (properties are now required)
    • pass idleTimeout to persistent caching implementation
    • ๐Ÿ›  fix module done counting for cached modules
    • โž• add back stats.cachedAssets
    • ๐Ÿ›  fix stats option processing for objects with prototype chain
    • track call context in concatenated modules correctly

    ๐ŸŽ Performance

    • โฌ†๏ธ upgrade enhanced-resolve to fix some function deopts
    • ๐Ÿ›  fix some function deopts in webpack
    • ๐ŸŽ avoid using toLocaleDateString and toLocaleTimeString for performance (intl need to be initialized)
    • ChunkGroup parents and children are no longer sorted
    • ๐Ÿฑ Stats assigns chunks with assets only once, instead of for every asset
    • ๐Ÿ–จ StatsFactory and StatsPrinter cache used hooks for items
    • Hashes for small data < 1kb is cached
    • ๐Ÿ—„ Put deprecation stuff for Sets in prototype instead of on every instance
    • Cache Map lookups and create less objects during module dependency processing
    • 0๏ธโƒฃ default cache.idleTimeout to 60s instead of 10s

    Examples

    • โž• add typescript example

    Contributing

    • โž• add a typing coverage report, to see type coverage of the repo
    • โฌ†๏ธ upgraded many dependencies
  • v5.0.0-alpha.18 Changes

    July 08, 2019

    ๐Ÿ”‹ Features

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  fixes resolve.alias: { something: false } to ignore module
  • v5.0.0-alpha.17 Changes

    July 01, 2019

    ๐Ÿš€ (based on 4.35.2)

    ๐Ÿ”‹ Features

    • ๐Ÿ‘ allow output.filename and splitChunks...filename to be a function
    • โšก๏ธ update watchpack dependency (ignored is added again, avoid fs.watchFile for own polling)

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  fix a case where modules are not added to chunks when using the same name multiple times in splitChunks
    • ๐Ÿ›  fix an internal use of a deprecated API

    Full Changelog

    Feedback

  • v4.44.2 Changes

    September 17, 2020

    ๐Ÿ›  Bugfixes

    • ๐Ÿ‘‰ make sure to generate correct chunk connection for blocks that are only connected in some runtimes
      • fixes a bug where filename contains undefined hash at runtime
  • v4.44.1 Changes

    July 30, 2020

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  fix bug in sideEffects optimization when using export * from "non-esm" and a default export.
    • โž• add missing optional peerDependencies for webpack-cli and webpack-command to support Yarn 2
  • v4.44.0 Changes

    July 24, 2020

    ๐Ÿ”‹ Features

    • ๐Ÿ‘Œ Improve sideEffects flag behavior when dynamic modules are part of the tree
      • Fixes a bug which causes empty modules (or type-only modules) to "break" Tree Shaking
    • โž• add splitChunks.enforceSizeThreshold to allow enfore splitting larger chunks unrelated from other limiations
      • Not set by default to avoid breaking change
      • It will be set by default to 50k in webpack 5
      • It's recommended to set it in webpack 4 too
    • โž• add support for resolve.roots and default resolve.roots: [context]
      • This allows to resolve server-relative urls (e.g. /src/abc) to the project root (or other locations when configured)
      • This allows to use loaders that rely on that behavior

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  fix bug where splitChunks produced non-optimal results when minSize is set to 0
      • This lead to NaNs in some places which breaks ordering
    • ๐Ÿ›  Fix bug which lead to HMR not working for splitChunks in entrypoints
    • ๐Ÿ›  force update watchpack and chokidar for chokidar bugfix which causes files to stop being watched