Skip to content

v0.1.10

Compare
Choose a tag to compare
@IWANABETHATGUY IWANABETHATGUY released this 09 May 09:54
· 3526 commits to main since this release

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: v0.1.9...v0.1.10