Releases: web-infra-dev/rspack
v1.0.3
What's Changed
Performance Improvements β‘
Exciting New Features π
- feat: support
compilation.chunkGroups[].origins
by @LingyuCoder in #7776
Bug Fixes π
- fix(make): isolated module clean incomplete by @jerrykingxyz in #7761
- fix: cheap source map by @SyMind in #7791
- fix: panic when identity mapping with different char indices by @SyMind in #7799
Document Updates π
- docs: fix migrate-from-builtins.css example codes by @noshower in #7775
- docs: update html plugin by @LingyuCoder in #7793
Other Changes
- chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows by @dependabot in #7783
- chore: cleanup unused module syntax by @ahabhgk in #7790
Full Changelog: v1.0.2...v1.0.3
v1.0.2
What's Changed
Performance Improvements β‘
- perf: source map dev tool plugin by @SyMind in #7739
- perf: use itoa for integer to string conversion by @shulaoda in #7762
Bug Fixes π
- fix: escape css ident by @inottn in #7743
- fix: handle ASI for export declaration by @inottn in #7767
- fix(dev-server): pin webpack-dev-server version by @hardfist in #7784
Document Updates π
- docs(deps): upgrade @rstack-dev/doc-ui 1.4.2 by @SoonIter in #7771
- docs: Update asset-module.mdx by @renzp94 in #7770
Other Changes
New Contributors
Full Changelog: v1.0.1...v1.0.2
v1.0.1
π‘ Highlights
Improved create-rspack
Support for the addition of Biome / ESLint / Prettier when creating a new Rspack project:
Improve error logs of serde deserialize error
What's Changed
Performance Improvements β‘
Exciting New Features π
- feat(html): improve template parameters by @LingyuCoder in #7686
- feat(html): support js template without child compiler by @LingyuCoder in #7704
- feat(rspack-cli): support more flags for command serve by @shulaoda in #7710
- feat(create-rspack): support for linter, formatter and CLI flags by @chenjiahan in #7735
- feat(html): support hooks by @LingyuCoder in #7729
Bug Fixes π
- fix: use topological order when SideEffectsFlagPlugin optimize incoming connections by @ahabhgk in #7717
- fix(core): improve error report when load builtin:swc-loader and buitin:lightningcss-loader by @hardfist in #7700
- fix: align ignored module debug comment with webpack by @fi3ework in #7736
- fix: template react logo animation css selector by @velusgautam in #7741
- fix: add
in_function_scope
for getters and setters by @CPunisher in #7745
Document Updates π
- docs: Announcing Rspack 1.0 by @chenjiahan in #7682
- docs: fix FAQ in the 1.0 announcement by @chenjiahan in #7712
- docs: fix type of
devServer.hot
by @shulaoda in #7711 - docs: change Dominus Kelvin to Kelvin Omereshone by @DominusKelvin in #7714
- docs: remove outdated content from announcing-1-0.mdx by @chenjiahan in #7716
- docs(landingpage): extract comps to @rstack-dev/doc-ui by @SoonIter in #7726
- docs: correct asset generator filename property type by @nanianlisao in #7755
- docs: disable bundler info injection by set
force: false
by @LingyuCoder in #7756
Other Changes
- refactor: improve HarmonyAcceptDependency by @shulaoda in #7671
- refactor: remove ErrorSpan in dependencies by @shulaoda in #7674
- test(rspack-cli): enable rspack cli command serve basic test case by @shulaoda in #7724
- chore: add SECURITY.md by @hardfist in #7733
- test(infra): improve e2e test stability by @shulaoda in #7713
- chore: change security report email by @hardfist in #7760
- test: webpack test hot cases for new incremental by @ahabhgk in #7738
- chore(deps): upgrade @rstack-dev/doc-ui 1.4.0 by @SoonIter in #7765
New Contributors
- @DominusKelvin made their first contribution in #7714
- @velusgautam made their first contribution in #7741
- @nanianlisao made their first contribution in #7755
Full Changelog: v1.0.0...v1.0.1
v1.0.0
See Announcing Rspack 1.0 for more details π
What's Changed
Breaking Changes π
- fix: compilation errors and warnings should be
RspackError
by @h-a-n-a in #6900 - feat: deprecate JavaScript API by @h-a-n-a in #6859
- feat: upgrade swc to latest version by @hardfist in #6887
- refactor: remove profile integration timestamp by @LingyuCoder in #6947
- feat: remove fields of
SwcJsMinimizerRspackPluginOptions
by @h-a-n-a in #6950 - fix!: align optimization.moduleIds and optimization.chunkIds when mode=none by @LingyuCoder in #6956
- feat!: remove output.amdContainer from config by @fi3ework in #6958
- feat!: revert default values of SwcJsMinimizer by @h-a-n-a in #6970
- fix!: set default value of concatenateModules to true in production mode by @JSerFeng in #6959
- refactor!: use swc_plugin_prefresh instead of builtin swc plugin by @LingyuCoder in #7069
- feat!: detect conflicting values in
DefinePlugin
by @h-a-n-a in #7045 - feat!: remove
builtins.provide
by @h-a-n-a in #7086 - feat!: use native resolver in loader by @bvanjoi in #4945
- fix!: correct names of hash fields in asset.info by @xc2 in #7220
- feat(deps)!: update
webpack-dev-server
to v5 and no longer lock the versions by @SoonIter in #7130 - fix!: remove @rspack/plugin-minify by @hardfist in #7307
- feat!(crates): upgrade swc_core to 0.99.5 by @LingyuCoder in #7292
- feat!: improve HtmlRspackPlugin by @LingyuCoder in #7577
- refactor!: disable css minify in html minify and remove SwcCssMinimizerRspackPlugin by @ahabhgk in #7547
- feat!: support
optimization.emitOnErrors
by @LingyuCoder in #7595 - feat(core)!: change dojang default escape|unescape to lodash.template syntax by @hardfist in #7661
Performance Improvements β‘
- perf(rspack_plugin_javascript): use Rayon to parse modules parallelly by @fi3ework in #6864
- perf: make picking concatenable modules parallel by @JSerFeng in #7003
- perf: cache
compilation.entrypoints
by @chenjiahan in #7059 - perf: enable "fat" LTO for production release by @chenjiahan in #7088
- perf: remove unneeded string clone by @JSerFeng in #7104
- perf: reduce
get_scheme
allocation by @h-a-n-a in #7109 - perf: reduce alloc for bailout reason by @h-a-n-a in #7118
- perf: stats rust side generate speed by @SyMind in #7126
- perf: reduce allocation for filename render by @h-a-n-a in #7138
- perf: optimize JS communication with lazy getters by @SyMind in #7163
- perf: reduce allocation for
TraceableError
by @h-a-n-a in #7192 - perf: reduce allocation for
Stats
by @h-a-n-a in #7124 - perf: reduce allocation for parsing by @h-a-n-a in #7219
- perf: use Set as Queue to solve the duplication by @JSerFeng in #7233
- perf: reduce allocation for
ModuleRule
matching by @h-a-n-a in #7249 - perf: reduce large pre-allocations for
JavascriptParser::new
by @h-a-n-a in #7286 - perf: faster hasher for
Ukey
s by @ahabhgk in #7287 - perf: a bunch of small improvement for ConcatenatedModule by @CPunisher in #7257
- perf: reduce allocation for adding dependencies by @h-a-n-a in #7301
- perf: no need to require entire enhanced-resolve by @chenjiahan in #7343
- perf(allocator): use mimalloc v2 for all by @h-a-n-a in #7361
- perf: stats to js speed by @SyMind in #7344
- 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
- perf!: use browserslist-rs for lightningcss by @JSerFeng in #7544
- perf: warn case sensitive plugin by @ahabhgk in #7606
- perf: improve performance of eval-source-map by @JSerFeng in #7630
Exciting New Features π
- feat(napi): support js chunk hash hook by @ahabhgk in #6853
- feat(napi): compilation chunk hash hook by @ahabhgk in #6858
- feat: root module is less prone to be wrapped in IIFE by @fi3ework in #6697
- feat: CopyRspackPlugin support function
to
option by @9aoy in #6866 - feat: remove styled-components, emotion and relay in builtin swc-loader by @h-a-n-a in #6862
- feat: align split-chunks stats by @SyMind in #6847
- feat: generating provenance statements by @chenjiahan in #6896
- feat: add
factoryMeta
toJsModule
and optimizeInnerGraphPlugin
for variable decl with iife by @CPunisher in #6888 - feat: simple custom worker syntax by @ahabhgk in #6899
- feat: add nwjs target to rspack config by @wxiaoyun in #6880
- feat: add build unique id for detecting by @LingyuCoder in #6865
- feat: encode filename in EvalDevToolModulePlugin by @SyMind in #6903
- feat: add stats.module.dependent by @LingyuCoder in #6913
- feat(cli): defineConfig support all types by @chenjiahan in #6911
- feat: add nwjs external preset by @wxiaoyun in #6907
- feat: custom worker syntax for worklet by @ahabhgk in #6916
- feat: support deep AST parsing in debug by @h-a-n-a in #6919
- feat: add idHints and hash of stats.chunk by @LingyuCoder in #6920
- feat: support nested webpack_exports by @ahabhgk in #6930
- feat: fully support EvalSourceMapDevToolPlugin by @SyMind in #6933
- feat: support use data uri with inline loaders by @h-a-n-a in #6939
- feat(create-rspack): improve the templates by @chenjiahan in #6940
- feat: add contextInfo on resolveData by @ahabhgk in #6948
- feat: align stats.assets[].info by @LingyuCoder in #6951
- feat: optimize filename function diagnostic by @h-a-n-a in #6953
- feat(cli): add --profile to enable stats module profile by @LingyuCoder in #6957
- feat: stats origin moduleid by @LingyuCoder in #6955
- feat!: enable lightning css minimizer as default css minimizer by @ahabhgk in #6960
- feat: align stats chunk group by @LingyuCoder in #6961
- feat: enable lightning css minimizer error recovery by @ahabhgk in #6995
- feat: support nmf resolve hook by @ahabhgk in #6998
- feat: support splitChunkSizes type by @wxiaoyun in #6989
- feat: refresh overlay by @JiangWeixian in #6161
- feat: align webpack target and stats api by @SyMind in #7027
- feat: support fetch priority by @LingyuCoder in #7029
- feat: support webpackInclude and webpackExclude by ...
v1.0.0-rc.2
What's Changed
Exciting New Features π
- feat: apply affected modules to all cgm phase by @ahabhgk in #7684
- feat: apply affected modules for provide exports by @ahabhgk in #7703
- feat: support
"loose-unrecognized-keys"
for config validation by @h-a-n-a in #7705
Bug Fixes π
- fix:
context
should be an absolute path by @h-a-n-a in #7687 - fix(core): don't panic when load config failed by @hardfist in #7693
- fix(rspack-resolver): enable pnp feature by @fi3ework in #7707
Document Updates π
- docs(landing-page): brand NEW landing page by @SoonIter in #7550
- docs(landingpage): replace some not clear icon by @SoonIter in #7685
- docs(landingpage): remove "show all features" button by @SoonIter in #7692
- docs(landingpage): fix the section width by @SoonIter in #7695
- docs: improve migrating from 0.x by @SyMind in #7694
- docs(landingpage): add star animation by @SoonIter in #7697
- docs: remove rspack config diff docs by @SyMind in #7696
- docs: remove all 0.x version badges by @chenjiahan in #7698
- docs(landingpage): UI improvements by @chenjiahan in #7699
- docs(landingpage): fix center button text by @SoonIter in #7701
- docs(landingpage): add lottie animation by @SoonIter in #7702
- docs(homepage): lazy load images by @chenjiahan in #7706
Other Changes
Full Changelog: v1.0.0-rc.1...v1.0.0-rc.2
v1.0.0-rc.1
What's Changed
Exciting New Features π
Bug Fixes π
- fix: should resolve aliased loader module with query by @h-a-n-a in #7660
- fix:
Path
pitfall for loader type by @h-a-n-a in #7666 - fix(security): DOM clobbering in auto public path by @LingyuCoder in #7664
- fix: resolve issue with external array not working in UMD libraryTarget by @inottn in #7675
- fix(deps): bump webpack-dev-middleware v7.4.2 to fix assetsInfo by @chenjiahan in #7676
- fix(create-rspack): should not replace plugin-react-refresh version by @chenjiahan in #7677
- fix(cli): peerDep allows @rspack/[email protected] by @hardfist in #7680
- fix: reuse codegen results only for new incremental by @ahabhgk in #7681
- fix: fallback to next main field when resolve failed by @LingyuCoder in #7670
Document Updates π
- docs: use --experimental-transform-types load tsconfig by @hardfist in #7667
- docs(mf): add
@module-federation/sdk
to FAQ by @chenjiahan in #7669
Other Changes
Full Changelog: v1.0.0-rc.0...v1.0.0-rc.1
v1.0.0-rc.0
π‘ Highlights
Faster eval-source-map
eval-source-map
is now 80% faster than the previous version, see #7630.
HtmlRspackPlugin Escape Syntax
Now HtmlRspackPlugin uses the same syntax as html-webpack-plugin to escape a value. This can help you migrate from html-webpack-plugin
to HtmlRspackPlugin
more smoothly.
- Before: Use
<%=
to escape the value,<%-
does not escape the value. - After: Use
<%-
to escape the value,<%=
does not escape the value.
For example, if a template value is <div>Rspack</div>
, the current output will be:
<!-- Input -->
<%= value %>
<%- value %>
<!-- Output -->
<div>Rspack</div>
<div>Rspack</div>
PR: #7661
What's Changed
Breaking Changes π
- feat!: support
optimization.emitOnErrors
by @LingyuCoder in #7595 - feat(core)!: change dojang default escape|unescape to lodash.template syntax by @hardfist in #7661
Performance Improvements β‘
- perf: warn case sensitive plugin by @ahabhgk in #7606
- perf: improve performance of eval-source-map by @JSerFeng in #7630
Exciting New Features π
- feat(html): improve error handling by @LingyuCoder in #7600
- feat: add cache for process runtime requirements by @ahabhgk in #7601
- feat(rspack_plugin_swc_js_minimizer): add minify option by @fi3ework in #7599
- feat(core): bump rspack_resolver 0.2.0 by @SoonIter in #7532
- feat(deps): bump @module-federation/runtime-tools 0.5.1 by @chenjiahan in #7649
- feat(mf2): add shareStrategy by @2heal1 in #7651
- feat: add minify option to lightningcss-loader by @witsaint in #7653
Bug Fixes π
- fix(node-stuff): use more conventional shim method by @fi3ework in #7587
- fix: missing
compiler.inputFileSystem
type by @chenjiahan in #7597 - fix: should not panic if provide dependency is not resolved by @JSerFeng in #7609
- fix: remove the unnecessary logic for inserting semicolons by @inottn in #7615
- fix: allow
null
andundefined
in EnvironmentPlugin by @colinaaa in #7617 - fix: should not stringify loader loading requests by @h-a-n-a in #7643
- fix(mf2): correct mf shared options by @2heal1 in #7640
- fix: unexpected ASI generation with sequence expression by @h-a-n-a in #7650
- fix: wrong
builtin:swc-loader
source maps ifinputSourceMap
is provided by @h-a-n-a in #7654 - fix(html): emit error when param not found by @LingyuCoder in #7656
- fix(mf2): initializeSharingInitTokens should be object by @2heal1 in #7657
- fix: "module-import" simply falls back to "module" when bails by @fi3ework in #7585
Document Updates π
- docs: add performance bottlenecks by @chenjiahan in #7593
- docs: keep webpack dependency in some cases by @chenjiahan in #7619
- docs: update eslint-webpack-plugin compatible status by @9aoy in #7627
- docs: filter rspack specific test cases by @9aoy in #7629
- docs: migrating from rspack 0.x by @SyMind in #7625
- docs: add notice about htmlRspackPlugin not support ejs syntax by @hardfist in #7652
- docs: rslib link should be its github repo by @gwy15 in #7655
Other Changes
- chore: fix version in case sensitive plugin by @ahabhgk in #7607
- refactor: drop support for non-UTF8 paths by @h-a-n-a in #7570
- chore(rspack_plugin_javascript): bump fast-glob 0.4.0 by @shulaoda in #7621
- chore(infra/biome): enable noGlobalEval by @shulaoda in #7623
- test: add more test cases for asi with sequence expressions by @h-a-n-a in #7626
- chore: remove
Compilation.updateAsset
comment by @h-a-n-a in #7628 - refactor(core): remove unnecessary enum for resolver by @hardfist in #7631
- refactor: remove extra CommonJs dependency locations by @shulaoda in #7622
- chore(deps): update dependency sass-loader to v16.0.1 by @renovate in #7633
- refactor: dependency location by @shulaoda in #7635
- refactor: add more clippy rule by @hardfist in #7594
- chore(workflow): allow renovate to bump npm dependencies by @chenjiahan in #7638
- refactor: resolve conflicts for dependency location by @shulaoda in #7641
- ci: bump simd-json by @fi3ework in #7663
New Contributors
Full Changelog: v1.0.0-beta.5...v1.0.0-rc.0
v1.0.0-beta.5
Highlights
Improved HtmlRspackPlugin
rspack.HtmlRspackPlugin
has a lot of improvements to be more in line with the html-webpack-plugin
.
- [Feat] Support
hash
to append compilation hash - [Feat] Support
base
to inject base tag - [Feat] Support
scriptLoading=systemjs-module
- [Feat] Support
[templatehash]
in filename template, same as[contenthash]
- [Breaking] Rename
excludedChunks
toexcludeChunks
, aligned with html-webpack-plugin - [Breaking] Minify html by default when
mode=production
- [Fix] No doctype parsing error
- [Fix] Win32 relateive path
- [Fix] Relative favicon path
- [Fix] Wrong
&
escaping inscript.src
andlink.href
- [Test] Passed html-webpack-plugin basic cases from 45 to 85
PR: #7577
Removed SwcCssMinimizerRspackPlugin
The rspack.SwcCssMinimizerRspackPlugin
has been removed to reduce binary size, please use LightningCssMinimizerRspackPlugin instead:
module.exports = {
optimization: {
minimizer: [
- new rspack.SwcCssMinimizerRspackPlugin({
+ new rspack.LightningCssMinimizerRspackPlugin({
// options
}),
],
},
};
Rspack also supports using css-minimizer-webpack-plugin.
What's Changed
Breaking Changes π
- feat!: improve HtmlRspackPlugin by @LingyuCoder in #7577
- refactor!: disable css minify in html minify and remove SwcCssMinimizerRspackPlugin by @ahabhgk in #7547
Performance Improvements β‘
Exciting New Features π
- feat: second param for loader hook by @SyMind in #7537
- feat(create-rspack): configure Lightning CSS targets by default by @chenjiahan in #7579
- feat(core): don't inject bundlerInfo in library mode by @hardfist in #7567
- feat: extract-css-plugin supports layer by @JSerFeng in #7583
Bug Fixes π
- fix: use intersection runtime for concat module code gen by @ahabhgk in #7523
- fix: chunk hash unstable by @JSerFeng in #7534
- fix: should insert semi after import, export, debugger and class field by @CPunisher in #7529
- fix: check SuperProp in walk_call_expression by @CPunisher in #7530
- fix: remove useless "module" external runtime by @fi3ework in #7533
- fix(rust-core): no need to pass resolve_factory when using rust api by @hardfist in #7539
- fix(cli): wrong entry defaults from cli by @xc2 in #7541
- fix: source map plugin module should enable by default by @ahabhgk in #7545
- fix: avoid inner graph top level symbol for nested webpack_require by @ahabhgk in #7584
Document Updates π
- docs: correct property type style and filename by @chenjiahan in #7520
- docs: add overview flow chart for compiler hooks by @LingyuCoder in #7524
- docs: update benchmark data by @chenjiahan in #7548
- docs: correct LightningCssMinimizerRspackPlugin link by @JSerFeng in #7551
- docs: update chunk type by @h-a-n-a in #7552
- docs: list top50 plugins compatibility by @9aoy in #7554
- docs(module-federation): optimize module federation version selection by @zhoushaw in #7558
- docs: add overview flow chart for compilation hooks by @LingyuCoder in #7555
- docs: remove experiments flags by @hardfist in #7560
- docs: remove examples page by @9aoy in #7561
- docs: update glossary by @hardfist in #7562
- docs: delete benchmark page by @hardfist in #7566
- docs: upgrade Rspress version by @zoolsher in #7581
- docs: rewrite tree-shaking doc by @JSerFeng in #7568
Other Changes
- refactor(typescript): packages/rspack/src/node/NodeWatchFileSystem by @wxiaoyun in #7528
- chore(infra): improve the configuration of
justfile
by @shulaoda in #7526 - chore: polish some words on introduction by @hardfist in #7557
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.2 by @renovate in #7564
- test(plugin): test html plugin with basic cases of html-webpack-plugin by @LingyuCoder in #7571
- chore(deps): bump plugin-react-refresh and lite-tapable to v1.0.0 by @chenjiahan in #7580
- refactor: improve esm harmony dependencies structure by @shulaoda in #7576
- refactor: module hash by @ahabhgk in #7569
Full Changelog: v1.0.0-beta.4...v1.0.0-beta.5
v1.0.0-beta.4
What's Changed
Exciting New Features π
- feat(stats): support
moduleReason.resolvedModule
by @LingyuCoder in #7467 - feat(diagnostic): prettier diagnostics of magic comments by @h-a-n-a in #7472
- feat: support compilation.modules[i].blocks by @SyMind in #7460
- feat: port "module-import" external type by @fi3ework in #7479
- feat(node-stuff): implement
node-module
shim by @fi3ework in #7465 - feat(stats): support
isOverSizeLimit
in stats by @LingyuCoder in #7483 - feat: splitChunks support usedExports by @JSerFeng in #7485
- feat: support
stats.chunkGroup[].childAssets
by @LingyuCoder in #7517 - feat: support module.size function in cacheGroups.[i].test by @SyMind in #7482
- feat: expose added/removed compilation.*_dependencies to js side by @jerrykingxyz in #7522
Bug Fixes π
- fix: patch asset info in update asset by @ahabhgk in #7464
- fix!: reuseExistingChunk should be false by default by @JSerFeng in #7489
- fix(modern-module): export syntax detect more invalid chars by @fi3ework in #7493
- fix: concatenation should merge moduleβs chunk init fragments by @fi3ework in #7504
- fix(modern-module): correct use bailout reason by @fi3ework in #7513
- fix: maxInitialRequests should exists in cache groups by @JSerFeng in #7512
- fix(hmr): replacement of optionalChain is compatible with legacy versions by @wChenonly in #7510
Document Updates π
- docs: update stats options by @LingyuCoder in #7473
- docs: list plugin compatible +5 by @9aoy in #7481
- docs: add link for Rspack 0.x website by @chenjiahan in #7484
- docs: list compatibility status of more plugins by @9aoy in #7488
- docs: add some missing options by @LingyuCoder in #7480
- docs: fix website error by @hardfist in #7506
- docs: remove deprecated configs by @chenjiahan in #7519
- docs: add MarsCode to online examples by @chenjiahan in #7525
Other Changes
- chore(deps): update cargo-bins/cargo-binstall action to v1.9.0 by @renovate in #7475
- chore(infra/biome): enable noAccumulatingSpread by @shulaoda in #7492
- chore: add description for all crates by @hardfist in #7494
- chore: remove useless swc_core features by @JSerFeng in #7496
- chore(workflow): enable dependency dashboard of renovate by @chenjiahan in #7498
- chore: move non-core packages to rspack-contrib by @LingyuCoder in #7499
- chore: fix missing metadata in publish by @hardfist in #7501
- refactor: remove get presentational dependencies for block by @ahabhgk in #7502
- chore: increase publish limitation by @hardfist in #7515
New Contributors
- @wChenonly made their first contribution in #7510
Full Changelog: v1.0.0-beta.3...v1.0.0-beta.4
v1.0.0-beta.3
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