Skip to content

v3.5.0

Compare
Choose a tag to compare
@sokra sokra released this 08 Aug 08:51
· 12408 commits to main since this release

Features:

  • add stats.excludeAssets to allow to filter assets in list (@ldrick)
  • add import(/* webpackMode: "weak" */ "module") to try to load a module without network request (@faceyspacey)
  • add 4. argument to require.context which is the context mode. Can be false, "eager", "lazy-once", "weak" and "async-weak". (@faceyspacey)
  • require.resolveWeak now support expressions (@faceyspacey)
  • generate only a single require for modules references in scope-hoisted modules (ModuleConcatenationPlugin)

Bugfixes:

  • keep correct import order when using the ModuleConcatenationPlugin
  • Generate shorter, more readable identifiers in ConcatenatedModule
  • --help output is flushed before process exit (@esbenp)
  • exit code is reliable reported for CLI validation error (@polomsky)
  • stats options are now validated by schema (@esbenp)
  • fixes problem when using the CommonsChunkPlugin in async mode without name argument
  • fixes description of --resolve-extensions (@tomek-d)
  • fixes has no internal name when using dependency variable in root of scope-hoisted modules (ModuleConcatenationPlugin)

Examples: