webpack v5.0.0-alpha.21 Release Notes

Release Date: 2019-08-22 // over 4 years ago
  • ๐Ÿš€ (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