Skip to content

Releases: web-infra-dev/rspack

v1.3.9

07 May 11:07
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚑

Bug Fixes 🐞

Document Updates πŸ“–

Other Changes

Full Changelog: v1.3.8...v1.3.9

v1.3.8

28 Apr 09:53
3335216
Compare
Choose a tag to compare

Highlights πŸ’‘

Exposing SWC JS API

Rspack now experimentally exposes some SWC JavaScript APIs via rspack.experiments.swc. This allows you to call SWC methods like transform or minify without installing the additional @swc/core package.

See SWC API for more details.

What's Changed

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Document Updates πŸ“–

Other Changes

New Contributors

Full Changelog: v1.3.7...v1.3.8

v1.3.7

25 Apr 09:45
3e51b1f
Compare
Choose a tag to compare

πŸ’‘ Highlights

The rspack.dev now provides llms.txt to help LLMs better understand Rspack:

What's Changed

Performance Improvements ⚑

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Document Updates πŸ“–

Other Changes

New Contributors

Full Changelog: v1.3.6...v1.3.7

v1.3.6

24 Apr 03:09
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚑

Exciting New Features πŸŽ‰

Bug Fixes 🐞

  • fix(incremental): chunk id change should affect associate chunk by @ahabhgk in #10032
  • fix(wasm): shutdown async runtime and thread workers after finishing by @CPunisher in #9895
  • fix: remove progressbar instance when closing compiler by @LingyuCoder in #10034
  • fix: should not rename webpack_require if declared in current scope by @JSerFeng in #10016
  • fix: should rename webpack_require pat in parameters by @JSerFeng in #10036
  • fix: failed to resolve tinypool when using parallel loader by @chenjiahan in #10040
  • fix: require with string raw by @SyMind in #10047
  • fix: dev server types by @LingyuCoder in #10038
  • fix: async entry should have unique runtime by @JSerFeng in #10049
  • fix(incremental): revoked module shouldn't exist in built modules by @ahabhgk in #10051
  • fix: conflict hot update main content warning by @ahabhgk in #10059
  • fix: should remove module napi_ref after finish make by @SyMind in #10062
  • fix: should validate options of builtin swc loader by @LingyuCoder in #10055
  • fix: context dependency with complex require by @SyMind in #10028
  • fix: import module entry dependency resolve options by @LingyuCoder in #10070
  • fix(cli): remove JSCPU & LOGGING support by @hardfist in #10071
  • fix: allow lazyCompilation.serverUrl to end with slash by @chenjiahan in #10074
  • fix: should have correct interop for default exportsType by @JSerFeng in #10069
  • fix: ThreadsafeOneShotRef prevents event loop destroy by @SyMind in #10082
  • fix: allow assignment of require identifier by @inottn in #10093
  • fix(cli): simplify RSPACK_PROFILE by @hardfist in #10072
  • fix: compilation.chuks not corresponds to a unique jsobect by @SyMind in #10098
  • fix: hmr should not include unchanged module when adding a new runtime by @ahabhgk in #10061
  • fix: comma in regex value of magic comments by @LingyuCoder in #10100
  • fix(wasm): add wasm fallback in checkVersion by @CPunisher in #10097
  • fix(diagnostic): fix excessively large width causing format_args panics by @h-a-n-a in #10109
  • fix(pnp): resolved wrong description file in yarn pnp mode by @stormslowly in #10111
  • fix: use evaluate expression to extract hmr accept dependencies by @ahabhgk in #10107
  • fix: compilation chunks for each is undefined by @SyMind in #10112
  • fix: should skip rebuilding chunk graph if only specifier order change by @JSerFeng in #10104
  • fix(incremental): fallback when chunk depend on full hash by @ahabhgk in #10110
  • fix(core): fix async event tracing showing in perfetto by @hardfist in #10119

Document Updates πŸ“–

Other Changes

Read more

v1.3.5

15 Apr 09:48
619d9fc
Compare
Choose a tag to compare

Rspack comes to Next.js πŸŽ‰

We’re excited to introduce next-rspack, a community-driven plugin bringing direct Rspack support to Next.js.

See the Rspack joins the Next.js ecosystem blog for details.

What's Changed

Performance Improvements ⚑

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Document Updates πŸ“–

Other Changes

New Contributors

Full Changelog: v1.3.4...v1.3.5

v1.3.4

09 Apr 08:43
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚑

Bug Fixes 🐞

  • fix: generated name for splitted chunk by @SyMind in #9944

Document Updates πŸ“–

  • docs: redirect rspack.org to rspack.dev by @chenjiahan in #9937
  • docs: Document content display error in 'experiments.mdx' by @lzxb in #9942

Other Changes

Full Changelog: v1.3.3...v1.3.4

v1.3.3

08 Apr 07:10
45ee46d
Compare
Choose a tag to compare

What's Changed

Exciting New Features πŸŽ‰

Bug Fixes 🐞

  • fix: should walk for worker args by @ahabhgk in #9901
  • fix(deps): tinypool not being able to run on older node versions by @h-a-n-a in #9925
  • fix: injecting custom runtime globals in runtimeRequirementInTree by @ahabhgk in #9930
  • fix(modern-module): leave non exist dependency to throw on resolve by @fi3ework in #9863

Document Updates πŸ“–

  • docs: fix the incorrect parameters used when creating the DevServer by @Gehbt in #9919
  • docs: improve Next.js guide by @chenjiahan in #9920

Other Changes

  • chore(deps): update dependency @arco-design/web-react to ^2.66.0 by @renovate in #9903
  • chore(deps): update dependency @rspack/plugin-react-refresh to ^1.1.0 by @renovate in #9905
  • chore(deps): update types by @renovate in #9908
  • chore(deps): update dependency @emnapi/core to ^1.4.0 by @renovate in #9904
  • chore(deps): update dependency mermaid to ^11.6.0 by @renovate in #9906
  • chore(deps): update dependency zx to v8.5.0 by @renovate in #9907
  • chore(deps): update dependency emnapi to ^1.4.0 by @renovate in #9912
  • chore(deps): update dependency csv-to-markdown-table to ^1.5.0 by @renovate in #9914
  • chore(deps): update dependency create-rstack to v1.4.0 by @renovate in #9911
  • chore: Upgrade Rust to nightly of 1.86.0 release date by @andersk in #9818
  • chore(deps): update dependency react-refresh to ^0.17.0 by @renovate in #9913
  • chore(deps): update dependency vitest to ^3.1.1 by @renovate in #9917
  • chore(deps): update dependency ts-jest to v29.3.1 by @renovate in #9916
  • chore(deps): update dependency less to v4.3.0 by @renovate in #9915
  • refactor: remove unused AsDependency trait by @LingyuCoder in #9921
  • chore: rollback rust to nightly 2025-03-26 by @LingyuCoder in #9926
  • chore: remove unnecessary linked project by @hardfist in #9927
  • chore(deps): update rust crate tokio to v1.43.1 [security] by @renovate in #9932
  • test: use errors.js to test expected error by @fi3ework in #9936

New Contributors

Full Changelog: v1.3.2...v1.3.3

v1.3.2

03 Apr 13:57
Compare
Choose a tag to compare

What's Changed

Exciting New Features πŸŽ‰

  • feat(loader-parallel): support more LoaderContext APIs in parallel loader by @h-a-n-a in #9884
  • feat(loader-parallel): support LoaderContext.fs as node:fs by @h-a-n-a in #9888
  • feat: support rspack wasi with node.js by @CPunisher in #9872

Bug Fixes 🐞

  • fix: should ensure cache exist when incremental rebuild chunk graph by @JSerFeng in #9886
  • fix: more stable named chunk ids by @ahabhgk in #9893
  • fix: multiple runtimeRequirementInTree js hook call by @ahabhgk in #9898
  • fix: should merge chunkCreateRoot instead of merge chunks later by @JSerFeng in #9892

Document Updates πŸ“–

Other Changes

  • chore(deps): update babel to v7.27.0 by @renovate in #9878
  • chore(deps): update rspress to v2.0.0-alpha.8 by @renovate in #9875
  • refactor: convert result with message by @LingyuCoder in #9866
  • test(loader-parallel): test parallel-option would only recieve true in parallel mode by @h-a-n-a in #9883
  • chore(deps): update dependency webpack-dev-server to v5.2.1 by @renovate in #9874
  • chore(deps): update npm dependencies by @renovate in #9794

Full Changelog: v1.3.1...v1.3.2

v1.3.1

02 Apr 03:02
Compare
Choose a tag to compare

Highlights

πŸš€ Support running JavaScript loader in parallel

Added a way to run JavaScript loader in parallel driven by worker_threads, using the max thread available on the OS.

This feature is still experimental. To enable parallelism, set Rule.use.parallel = true and experiments.parallelLoader = true:

module.exports = {
  module: {
    rules: [
      {
          test: /\.less$/,
          use: [
             {
                loader: "less-loader",
+               parallel: true,
                options: { ... }
             }
          ]
          type: "css"
      }
    ]
  },
  experiments: {
      css: true,
+     parallelLoader: true
  }
}

In big projects like 100x antd.less, we got 2.26x performance boost. (Tested on Apple M2 Max, 64G)

Related PR: #9807

⚠️ Fixed some critical bugs in 1.3.0

  • fix No unique code generation entry for unspecified runtime panic when using with devtool: 'eval-source-map'. Related issue: #9837
  • fix should have best match panic when using with rspack.CssExtractRspackPlugin. Related issue: #9833

What's Changed

Exciting New Features πŸŽ‰

  • feat: support experimental loader parallelism by @h-a-n-a in #9807
  • feat: support passing PathBuf and &Path to Context by @h-a-n-a in #9848

Bug Fixes 🐞

  • fix: make Compilation check logs clearer by @chenjiahan in #9853
  • fix: should remove all sub chunks if chunk is removed by @JSerFeng in #9845
  • fix: add return statement for dynamic importing script externals by @Leonewu in #9842
  • fix(deps): update @rspack/dev-server to v1.1.1 by @chenjiahan in #9860
  • fix: eval source map panic at getting codegen results by @ahabhgk in #9862

Document Updates πŸ“–

Other Changes

New Contributors

Full Changelog: v1.3.0...v1.3.1

v1.3.0

28 Mar 09:36
cd44b22
Compare
Choose a tag to compare

What's Changed

See Announcing Rspack 1.3 for more details.

Breaking Changes πŸ› 

Performance Improvements ⚑

  • perf: remove useless iterator in new code splitting and some allocations by @JSerFeng in #9821

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Document Updates πŸ“–

Other Changes

Read more