💡 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