v1.0.0-beta.3
chenjiahan
released this
06 Aug 12:26
·
800 commits
to main
since this release
What's Changed
Breaking Changes π
SwcJsMinimizerRspackPlugin
Move all SWC options to minimizerOptions
:
- The
compress
option has been moved tominimizerOptions.compress
. - The
mangle
option has been moved tominimizerOptions.mangle
. - The
format
option has been moved tominimizerOptions.format
. - The
module
option has been moved tominimizerOptions.module
.
module.exports = {
optimization: {
minimizer: [
new rspack.SwcJsMinimizerRspackPlugin({
- format: {
- ecma: 6,
- },
+ minimizerOptions: {
+ format: {
+ ecma: 6,
+ },
+ },
}),
],
},
};
LightningCssMinimizerRspackPlugin
- The
browserslist
option has been renamed tominimizerOptions.targets
.
module.exports = {
optimization: {
minimizer: [
new rspack.LightningCssMinimizerRspackPlugin({
- browserslist: 'Chrome >= 53',
+ minimizerOptions: {
+ targets: 'Chrome >= 53',
+ },
}),
],
},
};
PR: #7444
Performance Improvements β‘
- perf: rule matcher allocates only if
resource_path
is not a valid UTF-8 sequence by @h-a-n-a in #7441 - perf: bump lightningcss to remove duplicated browerslist-rs by @chenjiahan in #7461
Exciting New Features π
- feat: support compilation.entries by @SyMind in #7396
- feat: add
compiler.rspack
by @LingyuCoder in #7434 - feat: support seal hook in js side by @SyMind in #7428
- feat(dev-server): export package version by @leimonio in #7305
Bug Fixes π
- fix: add custom browserslist target schema by @CPunisher in #7421
- fix: provided exports for add entry modules by @ahabhgk in #7424
- fix(playground/cases): replace window.onmessage with self.onmessage in worker test case by @shulaoda in #7431
- fix: remove unused JSON schemas for CSS extract plugin by @chenjiahan in #7442
- fix: update deny.toml by @ahabhgk in #7447
- fix: dynamic entry plugin desc to options by @ahabhgk in #7458
- fix: map of empty file should have mappings field by @JSerFeng in #7456
- fix: deep merge module resolve options by @ahabhgk in #7470
- fix: stats typescript wrong by @SyMind in #7466
- fix: type mismatch when using webpack plugins by @chenjiahan in #7455
Document Updates π
- docs: add compiler api by @LingyuCoder in #7423
- docs: update ecosystem links by @chenjiahan in #7435
- docs: add MultiCompiler API by @LingyuCoder in #7436
- docs: add Stats API by @LingyuCoder in #7439
- docs: update dependencies and fix tsconfig paths by @chenjiahan in #7440
- docs: remove duplicated part in document of JavaScript API by @LingyuCoder in #7443
- docs: bump
@rstack-dev/doc-ui
to add Rslib and awesome Rspack by @Timeless0911 in #7445 - docs: add guide for different CSS usages by @chenjiahan in #7446
- docs: remove perf note for mergeDuplicateChunks by @JSerFeng in #7459
- docs: explain usage of inner graph by @JSerFeng in #7462
- docs: add detailed explanation for NormalModuleFactory hooks by @chenjiahan in #7468
- docs: correct some statements of code splitting and splitChunks by @JSerFeng in #7469
Other Changes
- test: enable inner graph and concat modules for runtime condition diff test by @ahabhgk in #7416
- ci: fix git clean wrong by filename too long by @SyMind in #7425
- chore(deps): update dependency sass-loader to v16 by @renovate in #7370
- refactor(type): increase type-coverage by @SoonIter in #7437
- chore(infra/biome): enable noParameterAssign by @shulaoda in #7430
- refactor(typescript): increase typescript type coverage to 100% for rspack-plugin-react-refresh by @shulaoda in #7448
- chore: remove log in mf test by @ahabhgk in #7451
- chore: documentation chores, typo, format, links, etc by @AkatQuas in #7457
- refactor!: redesign minimizer plugin options by @ahabhgk in #7444
Full Changelog: v1.0.0-beta.2...v1.0.0-beta.3