npm @rspack/cli 1.0.0-rc.0
v1.0.0-rc.0

latest releases: 0.7.6-canary-fd6c40d-20240918093542, 1.0.5, 1.0.4...
27 days ago

💡 Highlights

Faster eval-source-map

eval-source-map is now 80% faster than the previous version, see #7630.

image

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>
&lt;div&gt;Rspack&lt;/div&gt

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 ⚡

Exciting New Features 🎉

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 and undefined 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 if inputSourceMap 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

New Contributors

Full Changelog: v1.0.0-beta.5...v1.0.0-rc.0

Don't miss a new cli release

NewReleases is sending notifications on new releases.