Skip to content

Releases: web-infra-dev/rspack

v0.7.4

19 Jun 02:26
Compare
Choose a tag to compare

What's Changed

Highlights

LightningCSS minimizer

In v0.7.4 Rspack provides a new CSS minimizer which uses Lightning CSS under the hood, for now you can enable it by optimization.minimizer, and in Rspack v1.0, it will be enabled by default.

And here are two very useful features powered by the new LightningCSS minimizer:

  • removeUnusedLocalIdents: during minification, it removes the CSS declarations corresponding to the unused-symbols. This allows Rspack to work with CSS modules' tree shaking to remove unused CSS declarations corresponding to exports (previously, it would only remove the JS exports).
  • browserslist: with this options minification will also performs downgrading. If the postcss-loader was previously used only for downgrading, it can be removed.

Checkout our docs for more details.

Compatible with worker-loader

In v0.7.4 Rspack is compatible with worker-loader, which is usually used by some older projects, so this is provided only as a temporary solution to facilitate these older projects migration to Rspack, checkout our docs for more details.

Exciting New Features 🎉

Bug Fixes 🐞

  • fix(mf): avoid error webpack_require.f.consume after hmr by @ahabhgk in #6796
  • fix: css modules composes same ident with local class by @ahabhgk in #6815
  • fix: fix segmentation fault with custom loader by @h-a-n-a in #6824
  • fix: basically same codegen of arco-pro by @ahabhgk in #6826
  • fix: parse url dependency for minimized css by @ahabhgk in #6827
  • fix: should be able to add loader resolver dependencies by @h-a-n-a in #6828
  • fix: generate suggestions if api-extractor failed the test by @h-a-n-a in #6834
  • fix(cli): should close compiler after building by @chenjiahan in #6835
  • fix: docs ci wrong in node 16 by @SyMind in #6840
  • fix: source map wrong when columns is false by @SyMind in #6841
  • fix: sourceMapFilename default value by @SyMind in #6845
  • fix: panic of module_graph.get_depth by @LingyuCoder in #6846

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v0.7.3...v0.7.4

v0.7.3

13 Jun 10:29
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚡

  • perf: put visited_chunk_group_keys out of the loop and use FxHashMap by @SyMind in #6769
  • perf: code splitter by @SyMind in #6750

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

Full Changelog: v0.7.2...v0.7.3

v0.7.2

12 Jun 06:13
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚡

  • perf: code-splitting should not regenerate chunk by @JSerFeng in #6749

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v0.7.1...v0.7.2

v0.7.1

05 Jun 07:45
a1e014e
Compare
Choose a tag to compare

What's Changed

Highlights

Check exports presence

Now Rspack will emit warnings for using non-existent exports and conflicting re-exports, checkout docs for more details.

10%-15% performance improvement for JavaScript parsing

The old JavaScript parser performs multiple times of parsing and code generation.
In this version, Rspack refactored the current implementation. It's one time parsing now.
Check out the PR for detail.

image

Performance Improvements ⚡

  • perf: parallel collect export presence diagnostics by @ahabhgk in #6676

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v0.7.0...v0.7.1

v0.7.0

28 May 03:33
Compare
Choose a tag to compare

What's Changed

see Announcing Rspack v0.7 for more details

Notable Changes 🍭

Breaking Changes 🛠

Performance Improvements ⚡

Exciting New Features 🎉

  • feat: compat chunkGroup.chunks by @ahabhgk in #6490
  • feat: support performance config by @inottn in #6456
  • feat: support resolve.enforceExtension / descriptionFiles / importsFields options by @9aoy in #6491
  • feat: support contextModuleFactory beforeResolve hook by @SyMind in #6420
  • feat: export types of CSS extract plugin by @chenjiahan in #6528
  • feat: improve diagnostics if expressions passed into DefinePlugin are failed to parse by @shulaoda in #6382
  • feat: support cjs css with css esModule generator options by @ahabhgk in #6376
  • feat(create-rspack): add template-vue-ts by @cnryb in #5834
  • feat: inline entry modules by @ahabhgk in #6554
  • feat: support stage option of BannerPlugin by @colinaaa in #6623

Bug Fixes 🐞

Document Updates 📖

Other Changes

Read more

v0.7.0-beta.2

22 May 12:55
Compare
Choose a tag to compare
v0.7.0-beta.2 Pre-release
Pre-release

What's Changed

Performance Improvements ⚡

  • perf(core): prebundle enhanced-resolve to reduce dependencies by @chenjiahan in #6585

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

  • docs: add moment-locales-webpack-plugin support status by @9aoy in #6601
  • docs: translate the dev guide by @SoonIter in #6584
  • docs: fix the video component in md by @SoonIter in #6604
  • docs: change Storybook migration to storybook-rsbuild by @fi3ework in #6599

Other Changes

Full Changelog: v0.7.0-beta.1...v0.7.0-beta.2

v0.7.0-beta.1

21 May 07:05
Compare
Choose a tag to compare
v0.7.0-beta.1 Pre-release
Pre-release

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

Full Changelog: v0.7.0-beta.0...v0.7.0-beta.1

v0.7.0-beta.0

16 May 09:00
Compare
Choose a tag to compare
v0.7.0-beta.0 Pre-release
Pre-release

What's Changed

Breaking Changes 🛠

Performance Improvements ⚡

Exciting New Features 🎉

  • feat: compat chunkGroup.chunks by @ahabhgk in #6490
  • feat: support performance config by @inottn in #6456
  • feat: support resolve.enforceExtension / descriptionFiles / importsFields options by @9aoy in #6491
  • feat: support contextModuleFactory beforeResolve hook by @SyMind in #6420
  • feat: export types of CSS extract plugin by @chenjiahan in #6528
  • feat: improve diagnostics if expressions passed into DefinePlugin are failed to parse by @shulaoda in #6382
  • feat: support cjs css with css esModule generator options by @ahabhgk in #6376
  • feat(create-rspack): add template-vue-ts by @cnryb in #5834

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v0.6.5...v0.7.0-beta.0

v0.6.5

08 May 13:19
Compare
Choose a tag to compare

Hotfixes

  • fix: template strings panic by @ahabhgk in #6473
  • fix: should distinguish context for css modules local ident name by @ahabhgk in #6472

What's Changed

Performance Improvements ⚡

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v0.6.4...v0.6.5

v0.6.4

07 May 13:37
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

  • fix(create-rspack): remove useless sourceMap option in templates by @chenjiahan in #6319
  • fix: incremental rebuild clean module_graph.block & dependencies by @jerrykingxyz in #6298
  • fix: align get_nested_exports_info with webpack by @JSerFeng in #6351
  • fix: default resolve roots by @ahabhgk in #6340
  • fix: errors thrown in userland callbacks should not panic by @h-a-n-a in #6082
  • fix: process dependencies task remove resolve_options by @jerrykingxyz in #6377
  • fix: swc minimizer extracted comments should be stable by @h-a-n-a in #6380
  • fix: minify comments extract by @LingyuCoder in #6386
  • fix: runtimeChunk should control all entries' runtime by @ahabhgk in #6388
  • fix(mf): remove empty chunk mapping by @ahabhgk in #6394
  • fix(config): snapshot.module accept { timestamp: true} by @SoonIter in #6387
  • fix: swc parser should always preserve comments by @h-a-n-a in #6389
  • fix: wrong module source by @h-a-n-a in #6396
  • fix(config): support snapshot config {timestamp: true} and {hash: true} by @SoonIter in #6399
  • fix: handle unhandled scheme by @h-a-n-a in #6404
  • fix: allow all characters for webpackChunkName by @xc2 in #6411
  • fix: remove outdated TODOs in runtime code by @chenjiahan in #6409
  • fix: comment preserver should be placed prior to inline globals by @h-a-n-a in #6423
  • fix(rspack_loader_runner): char_boundary panic when debug content by @SoonIter in #6412
  • fix(mf): webpack_init_sharing with empty config by @ahabhgk in #6450
  • fix: consistent md4 hash in localNameIdent by @LingyuCoder in #6444

Document Updates 📖

Other Changes

Read more