MyGit

v0.1.10

web-infra-dev/rspack

版本发布时间: 2023-05-09 17:54:46

web-infra-dev/rspack最新发布版本:v0.3.13(2023-11-15 21:30:09)

Core features

builtins.minifyOptions.extractComments

You could extract the license using the configuration below:

module.exports = {
// ... snip
  builtins: {
     minifyOptions: {
       extractComments: true // by default, rspack will use regex `@preserve|@lic|@cc_on|^\**!`
     }
  }
}

or Using Regexp:

module.exports = {
// ... snip
  builtins: {
     minifyOptions: {
       extractComments: /@license/
     }
  }
}

inline match resource

For more details you could refer https://webpack.js.org/api/loaders/#inline-matchresource

optimization.realContentHash

By default, when you use the contenthash option in your output filename, Rspack will generate a hash based on the module's dependencies and other factors that can change even if the module's content has not changed. This means that the bundle will be invalidated and rebuilt even if the module's content has not changed. However, by enabling the optimization.realContentHash option, Rspack will generate a hash based only on the actual content of the module. This ensures that the bundle is invalidated and rebuilt only when the module's content has actually changed. For more details you could refer to optimization.realContentHash

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.9...v0.1.10

相关地址:原始地址 下载(tar) 下载(zip)

查看:2023-05-09发行的版本