Skip to content

v4.40.0

Compare
Choose a tag to compare
@sokra sokra released this 12 Sep 18:57

Features

  • adds asset info for emitted assets
    • new methods allow easy emitting/updating of assets compilation.emitAsset/updateAsset (instead of accessing the Object compilation.assets)
    • new getter methods to get assets compilation.getAssets() and compilation.getAsset(name)
    • 3 flags in asset info:
      • immutable: when set an asset can be cache infinitely
      • development: when set an asset is some kind of development tool (i. e. a SourceMap)
      • hotModuleReplacement: when set an asset is generated for an hot update
    • Stats expose info object in assets
    • String version of Stats show flags