All Versions
18
Latest Version
Avg Release Cycle
8 days
Latest Release
154 days ago

Changelog History
Page 1

  • v5.0.0

    July 08, 2019

    🔋 Features

    🛠 Bugfixes

    • 🛠 fixes resolve.alias: { something: false } to ignore module
  • v5.0.0-alpha.23

    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

    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

    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

    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 schema-utils@2 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

    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

    July 08, 2019

    🔋 Features

    🛠 Bugfixes

    • 🛠 fixes resolve.alias: { something: false } to ignore module
  • v5.0.0-alpha.17

    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.39.3

    August 27, 2019

    🛠 Bugfixes

    • 🛠 fix a missing module in chunk caused by incorrect chunk graph generation of async chunks
  • v4.39.2

    August 13, 2019

    🛠 Bugfixes

    • 🛠 fix ProfilingPlugin not ending traces correctly