Skip to content

v5.0.0-alpha.15

Pre-release
Pre-release
Compare
Choose a tag to compare
@sokra sokra released this 05 Jun 16:39

(based on 4.33.0)

Features

  • when exporting imported namespace objects, they are now tracked for Tree Shaking
  • added experiments config option which allows to enable experimental features
    • Note that these experiments have relaxed SemVer compatibility (breaking changes to experimental feature may occur in minor version)
  • (BREAKING CHANGE) .mjs support is now disabled by default and can be enabled with experiments.mjs: true
  • (BREAKING CHANGE) WebAssembly support is now disabled by default and can be enabled with experiments.syncWebAssembly: true or experiments.asyncWebAssembly: true
    • experiments.syncWebAssembly: true: The implementation used in webpack 4
    • experiments.asyncWebAssembly: true: The updated spec based on async modules
  • added experiments.importAwait: true to allow to use import await and export await to import/reexport async modules
  • added experiments.importAsync: true which allows normal import and export to import/reexport async modules
  • added experiments.topLevelAwait: true which allows to use await in EcmaScript Modules on top-level (makes the module an async module)

Full Changelog

Feedback