Node binding for rspack
Last release 2 days ago
26 Aug 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
1117 releases ยท first in 2022
Release timeline
1117 releases since 2022Releases
- 1.2.625 Feb 2025
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at release/v1.2.6 -->
What's Changed
Performance Improvements โก
- perf(loader-runner): memoize resolver creation for improved performance by @inottn in https://github.com/web-infra-dev/rspack/pull/9403
- perf: remove blocking for execute module hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9406
- perf: use partition_map to avoid clone by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9427
Exciting New Features ๐
- feat: render chunk runtime template with dojang by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9407
- feat: using dojang to render runtime_template by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9422
Bug Fixes ๐
- fix(incremental): enable incremental for full hash test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9377
- fix: sort group by group index by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9394
- fix: sort order incorrect by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9404
- fix: strip
blob:protocol when public path is auto by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9303 - fix(type): Change the module in the LazyCompilationOptions from any to Module by @gaoachao in https://github.com/web-infra-dev/rspack/pull/9387
- fix: clean up deps at the beginning of compilation.finish by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9414
- fix(json): correctly escape unicode characters by @inottn in https://github.com/web-infra-dev/rspack/pull/9419
- fix: remove dynamic entry should re-build chunk graph by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9425
- fix: build error with reserved keywords in CSS modules by @inottn in https://github.com/web-infra-dev/rspack/pull/9439
- fix: update CLI flags to use camelCase consistently by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9442
- fix: use persistent cache with module federation by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9445
Other Changes
- chore(codeowners): removing deprecated package by @zackarychapple in https://github.com/web-infra-dev/rspack/pull/9395
- test: replace content hashes and full hashes to placeholders in css extract plugin cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9398
- test(incremental): enable more webpack watch tests by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9392
- refactor: incremental rebuild make failed modules and dependencies by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9393
- chore: enable renovate webpack by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9420
- chore(deps): update rspress to v1.42.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9417
- ci: use different shared key between normal build and codspeed build by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9421
- test: do not snapshot the whole main file in css extract test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9408
- chore(codeowners): update code ownership to match repository structure by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9410
- ci: run codspeed build in parallel by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9401
- chore: move modern module library finish_modules to finish_make by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9426
- chore(deps): update dependency @rslib/core to v0.5.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9416
- chore(workflow): no need to run pnpm cache in rust jobs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9430
- ci: only install binding dependencies when building binary by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9429
- chore(deps): update dependency postcss-loader to v8 by @renovate in https://github.com/web-infra-dev/rspack/pull/9418
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9366
- chore(deps): update dependency @swc/plugin-remove-console to ^6.3.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/9435
- chore(deps): update dependency less-loader to v12 by @renovate in https://github.com/web-infra-dev/rspack/pull/9436
- chore(deps): update dependency typescript to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/9437
- chore(deps): update npm dev dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9367
- chore(deps): bump
fast-globto v0.4.4 by @shulaoda in https://github.com/web-infra-dev/rspack/pull/9438 - test: should not call stats toJson if not necessary by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9434
- test: remove hash test in sri plugin cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9440
- refactor: remove duplicate static variable definitions by @inottn in https://github.com/web-infra-dev/rspack/pull/9443
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.5...v1.2.6
- 1.2.519 Feb 2025
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.2.5 -->
Note ๐
Version 1.2.5 fixes compatibility issues caused by Glibc versions on Linux x86 systems in version 1.2.4.
What's Changed
Exciting New Features ๐
- feat(splitChunks): support splitChunks.minSizeReduction by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9341
Bug Fixes ๐
- fix: revert linux x86_64 publish to docker by @hardfist in https://github.com/web-infra-dev/rspack/pull/9373
- fix: remove unnecessary path-to-URL conversion in html plugin by @inottn in https://github.com/web-infra-dev/rspack/pull/9348
- fix(splitChunks): splitChunks maxSize not work as expected if size of some type is small by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9285
Document Updates ๐
- docs: update release workflow by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9357
- docs: enhance compiler run hooks documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9374
- docs: fix import SRI statement by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9376
- docs: update Dll and SRI plugin status by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9384
Other Changes
- chore: add tests option for release full by @hardfist in https://github.com/web-infra-dev/rspack/pull/9360
- ci: add option to test when releasing canary by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9363
- chore(deps): update rspress to v1.41.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/9368
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9364
- chore(deps): update dependency prettier to v3.5.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9365
- chore(deps): update SWC to 14.0.1 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9371
- Revert "perf: reuse js dependency" by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9389
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.4...v1.2.5
- 1.2.418 Feb 2025
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.2.4 -->
Highlights ๐ก
Support for SRI
This release introduces a new built-in SubresourceIntegrityPlugin to provide support for Subresource Integrity (SRI).
SubresourceIntegrityPluginis a Rust rewrite of the webpack-subresource-integrity and is much more faster.import { experiments } from '@rspack/core'; const { SubresourceIntegrityPlugin } = experiments; export default { plugins: [new SubresourceIntegrityPlugin()], output: { crossOriginLoading: 'anonymous', }, };Updated Roadmap
The Rspack roadmap has been updated with new targets such as Wasm build and Rstest, see Roadmap.
What's Changed
Performance Improvements โก
- perf: one shot ref for class instance by @SyMind in https://github.com/web-infra-dev/rspack/pull/9267
- perf: revert opt-level to 3 by @hardfist in https://github.com/web-infra-dev/rspack/pull/9339
- perf: reuse js module between compilation by @SyMind in https://github.com/web-infra-dev/rspack/pull/9265
Exciting New Features ๐
- feat: split chunks overall filename by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9243
- feat: chunk graph get module hash by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9242
- feat: add
--config-loaderCLI option by @krutoo in https://github.com/web-infra-dev/rspack/pull/9210 - feat: support enabling builtin loaders in compiler builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9262
- feat: support experiments.SubresourceIntegrityPlugin #9171 by @hardfist in https://github.com/web-infra-dev/rspack/pull/9311
- feat: supports chunkGraph and moduleGraph for cacheGroup.test by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9248
Bug Fixes ๐
- fix: use entry arg with match resource by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9235
- fix: introduce AsyncTask, make rebuildModule safer by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9244
- fix(core): fix module external not treated as async by @hardfist in https://github.com/web-infra-dev/rspack/pull/9247
- fix(css,assets): wrong "publicPath: auto" asset path in windows by @SoonIter in https://github.com/web-infra-dev/rspack/pull/9239
- fix(deps): govern graceful-fs sourcemap phantom dependencies by @SoonIter in https://github.com/web-infra-dev/rspack/pull/9259
- fix: has async chunks by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9263
- fix: dynamic entry dependency reuse by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9268
- fix(core): add sourceURL when devtool set to 'eval-source-map' by @hardfist in https://github.com/web-infra-dev/rspack/pull/9275
- fix: persistent cache remove non-existent modules from make_failed_module by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9309
- fix: build cli dev failed by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9331
- fix: asset cached source size by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9310
- fix: force load all symbol by @hardfist in https://github.com/web-infra-dev/rspack/pull/9337
- fix: initialize lazy compilation backend earlier by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9342
- fix: allow loaderContext methods to be called independently of context by @inottn in https://github.com/web-infra-dev/rspack/pull/9326
- fix: clear module_execution_results every compilation by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9346
- fix: runtime chunk check full hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9355
Document Updates ๐
- docs: update Rspack roadmap by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9241
- docs: display GitHub button on homepage by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9261
- docs: update plugin compatibility status by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9276
- docs: reuse antd from
@rstack-dev/doc-uiby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9284 - docs: config-loader CLI option by @krutoo in https://github.com/web-infra-dev/rspack/pull/9291
- docs: add
SubresourceIntegrityPluginby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9302 - docs: fix Chinese comment in English docs by @sadan4 in https://github.com/web-infra-dev/rspack/pull/9316
- docs: fix letter casing of Re.Pack by @jbroma in https://github.com/web-infra-dev/rspack/pull/9344
Other Changes
- chore: release packages v1.2.3 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9240
- chore: enable no-dts-cache by default by @hardfist in https://github.com/web-infra-dev/rspack/pull/9162
- chore(deps): update dependency memfs to v4.17.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9249
- chore(deps): update dependency postcss to ^8.5.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/9250
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9255
- chore: fix lint-staged failed when js/ts file staged by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9246
- refactor: module diagnostic action move to
Diagnosabletrait by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9264 - refactor: format:js should be used without args by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9266
- chore(deps): update pnpm to v9.15.5 by @renovate in https://github.com/web-infra-dev/rspack/pull/9256
- chore(deps): update dependency prettier to v3.5.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9251
- test: bump pug v3 and reduce npm dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9272
- test: remove copy-webpack-plugin v5 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9274
- chore(workflow): update version scripts and reduce dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9277
- chore: simplify ci workflow by @hardfist in https://github.com/web-infra-dev/rspack/pull/9283
- chore(deps): update dependency @swc/plugin-remove-console to ^6.2.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9292
- chore(deps): update dependency yargs to v17.7.2 - autoclosed by @renovate in https://github.com/web-infra-dev/rspack/pull/9295
- chore(deps): update dependency is-ci to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/9297
- chore(deps): update dependency husky to ^9.1.7 by @renovate in https://github.com/web-infra-dev/rspack/pull/9293
- chore(deps): update dependency wast-loader to ^1.14.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9294
- refactor: move module_argument and exports_argument to BuildInfo struct by @inottn in https://github.com/web-infra-dev/rspack/pull/9260
- chore: pin codspeed version by @hardfist in https://github.com/web-infra-dev/rspack/pull/9300
- chore: use more semantic naming profile by @hardfist in https://github.com/web-infra-dev/rspack/pull/9288
- refactor(rust): improve
replace_all_placeholderby @shulaoda in https://github.com/web-infra-dev/rspack/pull/9289 - chore: fix bench ci by @hardfist in https://github.com/web-infra-dev/rspack/pull/9301
- chore: add codspeed badge by @hardfist in https://github.com/web-infra-dev/rspack/pull/9312
- chore: continue clean up workflow by @hardfist in https://github.com/web-infra-dev/rspack/pull/9308
- chore(deps): update dependency semver to ^7.7.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9320
- chore(deps): update dependency sass-embedded to ^1.85.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9319
- chore(deps): update dependency core-js to v3.40.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9317
- chore(deps): update dependency enhanced-resolve to v5.18.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9318
- chore(deps): update dependency serve-static to v1.16.0 [security] by @renovate in https://github.com/web-infra-dev/rspack/pull/9315
- chore(deps): update dependency cross-spawn to v7.0.5 [security] by @renovate in https://github.com/web-infra-dev/rspack/pull/9314
- revert: Revert "refactor(rust): improve
replace_all_placeholder" by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9304 - chore(deps): update dependency vitest to v3 by @renovate in https://github.com/web-infra-dev/rspack/pull/9298
- refactor: rename Rspack to JsCompiler by @hardfist in https://github.com/web-infra-dev/rspack/pull/9327
- chore(deps): update rspress to v1.41.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/9328
- chore(deps): update dependency terser to v5.39.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9329
- chore: remove justfile by @hardfist in https://github.com/web-infra-dev/rspack/pull/9332
- ci: cargo shear not found by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9334
- refactor: NormalModule.source remove diagnostic data by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9281
- chore: run bench using release profile by @hardfist in https://github.com/web-infra-dev/rspack/pull/9338
- chore(deps): update dependency fastify-graceful-shutdown to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/9330
- chore(deps): update dependency date-fns to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/9351
- chore(deps): update dependency @monaco-editor/react to ^4.7.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9349
- chore(deps): update dependency markdown-to-jsx to ^7.7.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/9350
- chore: update webpack 5.97.1 by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9340
- chore: add tests option by @hardfist in https://github.com/web-infra-dev/rspack/pull/9361
New Contributors
- @krutoo made their first contribution in https://github.com/web-infra-dev/rspack/pull/9210
- @sadan4 made their first contribution in https://github.com/web-infra-dev/rspack/pull/9316
- @jbroma made their first contribution in https://github.com/web-infra-dev/rspack/pull/9344
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.3...v1.2.4
- 1.2.311 Feb 2025
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.2.3 -->
What's Changed
Performance Improvements โก
- perf(deps): update
swc_coreto v13 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9133 - perf(storage): release pack contents after loading by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9187
- perf: speedup compile by @hardfist in https://github.com/web-infra-dev/rspack/pull/9199
Exciting New Features ๐
- feat(create-rspack): create React 19 project by default by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9130
- feat: add rust benchmark case for code splitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9127
- feat: get block chunk group by @SyMind in https://github.com/web-infra-dev/rspack/pull/9165
- feat: support missing module graph js api by @SyMind in https://github.com/web-infra-dev/rspack/pull/9172
- feat: support missing module js api by @SyMind in https://github.com/web-infra-dev/rspack/pull/9177
- feat: add rsdoctor native plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8930
- feat: layer option support function by @SyMind in https://github.com/web-infra-dev/rspack/pull/9189
- feat: chunkGroup.childrenIterable & dependency.ids by @SyMind in https://github.com/web-infra-dev/rspack/pull/9195
- feat: add getResolver method for NormalModuleFactory by @inottn in https://github.com/web-infra-dev/rspack/pull/9202
- feat(lazy-compilation): support module id for LazyCompilationProxyModule by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9223
- feat(plugin-css): should handle css layer supports media by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9221
- feat: add native hook of real content hash plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9234
Bug Fixes ๐
- fix: dll manifest zod validation by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9112
- fix: amd require array by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9113
- fix: require local module and support new require by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9114
- fix: amd alias define renaming by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9117
- fix: correct lazy compilation backend options schema by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9138
- fix: should not tree shaking used ident accidentally in composes by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9161
- fix(types): prebundle
@swc/typesto fix missing dts files by @inottn in https://github.com/web-infra-dev/rspack/pull/9173 - fix: do not expose
build()for level-2 options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9188 - fix: align default options with JS by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9116
- fix(core): initialize resolverFactory early by @hardfist in https://github.com/web-infra-dev/rspack/pull/9193
- fix(core): don't swallowing exceptions in stats.toJson by @hardfist in https://github.com/web-infra-dev/rspack/pull/9208
- fix: incremental make rebuild removed entry module by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9209
- fix: ignore generator options for
asset/sourcemodule type by @haocheng6 in https://github.com/web-infra-dev/rspack/pull/9216 - fix: lazy compilation request handler should filter lazy-compilation request by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9166
- fix: alias sequence order & merge result by @SyMind in https://github.com/web-infra-dev/rspack/pull/9206
- fix(incremental): build chunk graph not build new added entry by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9225
- fix: namedChunks / emitAsset js api by @SyMind in https://github.com/web-infra-dev/rspack/pull/9185
- fix: rspack sources perf bug by @SyMind in https://github.com/web-infra-dev/rspack/pull/9229
- fix(deps): โฌ๏ธ rspack_resolver 0.5.1 by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9233
Document Updates ๐
- docs: add Khan Academy to who is using by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9120
- docs: add notes for injecting core-js polyfill by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9122
- docs: fix invalid
cacheGroupsexample by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9129 - docs: add examples for all module parser and generator options by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9131
- docs: rewrite plugins usage guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9132
- docs: improve HtmlRspackPlugin docs and types by @grushetsky in https://github.com/web-infra-dev/rspack/pull/9144
- docs: add
compiler.hooks.finishMakeby @colinaaa in https://github.com/web-infra-dev/rspack/pull/9146 - docs: set Open Graph images based on page routes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9148
- docs: add profile guide using samply by @hardfist in https://github.com/web-infra-dev/rspack/pull/9157
- docs: update rspress 1.41.0 and enable codeBlocks search by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9158
- docs(typo): Fix rspack.config typo in nestjs by @Codfisher in https://github.com/web-infra-dev/rspack/pull/9179
- docs: support for tabbed code blocks for ESM/CJS toggle by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9186
- docs: fix
output.workerChunkLoadinglink by @9aoy in https://github.com/web-infra-dev/rspack/pull/9194 - docs: use ESM for simple configuration examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9190
- docs: update profiling guide by @hardfist in https://github.com/web-infra-dev/rspack/pull/9201
- docs: rewrite configure Rspack section by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9211
- docs: improve FlagDependencyExportsPlugin for large JSON by depth by @hai-x in https://github.com/web-infra-dev/rspack/pull/9215
- docs: correct splitChunks chunk.name by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9218
- docs: link to Tailwind CSS v4 documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9220
- docs: migrate all configuration examples to ESM or dual format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9238
Other Changes
- chore: release packages 1.2.2 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9106
- chore(CI): split PR labeler workflow by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9102
- chore: update Rslib description in README.md by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/9110
- chore(deps): update rspress to v1.40.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/9118
- chore(deps): update
swc_coreto v10.7.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9125 - chore(workflow): remove duplicated issue label by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9140
- chore(ci): remove invalid field by @inottn in https://github.com/web-infra-dev/rspack/pull/9147
- ci: fix corepack key id mismatch by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9153
- chore: bump inventory 0.1 -> 0.3 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/9159
- fix(type): export resource data with data type and add docs by @LonelySnowman in https://github.com/web-infra-dev/rspack/pull/9107
- test: add missing
findBundleoption to ensure test cases are executed by @haocheng6 in https://github.com/web-infra-dev/rspack/pull/9057 - refactor: path relative in source map plugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/8903
- feat: add
EnableChunkLoadingPlugin.{setEnabled,checkEnabled}by @colinaaa in https://github.com/web-infra-dev/rspack/pull/9092 - feat: add
chunk.getEntryOptions()by @colinaaa in https://github.com/web-infra-dev/rspack/pull/9093 - chore(renovate): split npm updates into fine-grained PRs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9164
- refactor: remove
NormalModulelast_successful_build_meta field by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9163 - chore(deps): update dependency @rslib/core to v0.4.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9167
- chore(deps): update dependency @rstack-dev/doc-ui to v1.6.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9168
- test(webpack-test): add back two test case by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9152
- chore(deps-dev): bump vitest from 2.1.8 to 2.1.9 by @dependabot in https://github.com/web-infra-dev/rspack/pull/9174
- refactor: module.build directly updates build_info and build_meta by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9178
- chore(deps): update dependency create-rstack to v1.2.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9181
- chore(deps): update dependency cspell to ^8.17.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/9182
- refactor(rust): use
cow_to_ascii_uppercaseandcow_to_ascii_lowercaseby @shulaoda in https://github.com/web-infra-dev/rspack/pull/9126 - chore(deps): update dependency zod to ^3.24.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9169
- chore(deps): update dependency acorn to ^8.14.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9196
- chore(deps): update dependency enhanced-resolve to v5.18.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9197
- chore(deps): update dependency memfs to v4.17.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9198
- chore(deps): update crate-ci/typos action to v1.29.5 by @renovate in https://github.com/web-infra-dev/rspack/pull/9156
- chore(workflow): let renovate pin GitHub Action digests by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9200
- chore(deps): update babel by @renovate in https://github.com/web-infra-dev/rspack/pull/9180
- chore(deps): update dependency @arco-design/web-react to ^2.65.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9212
- chore(deps): update typescript and @microsoft/api-extractor by @renovate in https://github.com/web-infra-dev/rspack/pull/9040
- chore(deps): update dependency antd to v5.23.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/9214
- chore(deps): pin dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9203
- chore(deps): update dependency acorn to ^8.14.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9213
- chore: allow prettier to format more test files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9207
- chore: remove useless tests folder by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9219
- refactor: get plugin hooks by compilation id by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9222
- chore(deps): update dependency fs-extra to ^11.3.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9226
- chore(deps): update dependency less to v4.2.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/9227
- chore(deps): update dependency terser to v5.38.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9228
- chore: bump rspack_dojang to 0.1.11 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9231
- refactor: build info save module asset by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9230
- refactor: add compilation id to html hook data by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9236
New Contributors
- @grushetsky made their first contribution in https://github.com/web-infra-dev/rspack/pull/9144
- @LonelySnowman made their first contribution in https://github.com/web-infra-dev/rspack/pull/9107
- @Codfisher made their first contribution in https://github.com/web-infra-dev/rspack/pull/9179
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.2...v1.2.3
- perf(deps): update
- 1.2.223 Jan 2025
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.2.2 -->
What's Changed
New Features ๐
- feat: add runtime plugin hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9084
- feat(incremental): don't use has_module_import_export_change when incremental code splitting enabled by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9062
- perf(options): replace
Regexpwithends_withmatch by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9081
Bug Fixes ๐
- revert: fix: align
amdoption behavior with webpack by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9103 - fix: resolve the inconsistent type issue in
JsModuleby @shulaoda in https://github.com/web-infra-dev/rspack/pull/8939 - fix: should not have warnings for cjs when using dll by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9091
- fix: should not cache tracing instance by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9086
- fix: render module id as number if we can by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9099
Other Changes
- test(benchmark): add basic sourcemap bench case by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9100
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.1...v1.2.2
- 1.2.122 Jan 2025
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.2.1 -->
What's Changed
New Features ๐
- feat: improve compatibility with compiler options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9067
- feat: integrate rspack_dojang for enhanced template rendering by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9079
Bug Fixes ๐
- fix: amd define in function params by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9088
- revert: rspack sources substring heuristic algorithm by @SyMind in https://github.com/web-infra-dev/rspack/pull/9082
Other Changes
- refactor: split compiler hook registers into multiple files by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9061
- chore(deps): update dependency commander to v13 by @renovate in https://github.com/web-infra-dev/rspack/pull/9074
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.22 by @renovate in https://github.com/web-infra-dev/rspack/pull/9071
- chore(deps): update pnpm to v9.15.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/9073
- docs: polish some documentations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9085
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.0...v1.2.1
- 1.2.021 Jan 2025
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.2.0 -->
See Announcing Rspack 1.2 for more details.
What's Changed
Performance Improvements โก
- perf: ignore watching files in node_modules by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8645
- perf: remove tokio-console to reduce binary size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8681
- perf: bump miette v7 to reduce binary size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8694
- perf(incremental): compute affected cgm incrementally by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8688
- perf: reduce memory consumption of
CachedSourceby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8666 - perf: faster
substringofrspack-sourcesby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8731 - perf: side effects when there aren't too many optimizable dependencies by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8746
- perf: parallelize side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8781
- perf(deps): bump
fast-globto v0.4.1 by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8800 - perf: improve FlagDependencyExportsPlugin for large JSON by depth by @hai-x in https://github.com/web-infra-dev/rspack/pull/8802
- perf(incremental): better parallel for side effects plugin rebuild by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8848
- perf(cli): remove Node.js semver checker by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8855
- perf(cli): lazy import rechoir and interpret by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8856
- perf: persistent cache regenerate artifact.*_dependencies from module_graph by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9004
- perf: persistent cache use multi-thread by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9010
- perf: add iterator consumer to improve performance by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9014
Exciting New Features ๐
- feat: pass compiler_path to rust Compiler by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8665
- feat: cache storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8466
- feat(incremental): named chunk ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8652
- feat: support additional-pass hook by @SyMind in https://github.com/web-infra-dev/rspack/pull/8672
- feat: improve cache storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8675
- feat: exports info binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8677
- feat: chunkGraph.getModuleId binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8680
- feat: persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8687
- feat: support
sizeoption for optimization.chunkIds config by @inottn in https://github.com/web-infra-dev/rspack/pull/8642 - feat: do not cleanup Rust instance by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8702
- feat: export
WarnCaseSensitiveModulesPluginand disable it by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8697 - feat: cache storage move lock file by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8686
- feat: addInclude binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8713
- feat: update experiments.cache signature by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8729
- feat(mf): bump @module-federation/runtime-tools to 0.8.4 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8728
- feat!: align AssetGeneratorDataUrlFunction with webpack by @inottn in https://github.com/web-infra-dev/rspack/pull/8614
- feat: support module.generator.outputPath by @inottn in https://github.com/web-infra-dev/rspack/pull/8554
- feat: add macro to get rspack version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8760
- feat: persistent cache expose error to compilation.diagnostic by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8765
- feat: persistent cache in production mode wait for save to complete by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8777
- feat: split big chunks based on modules path similarities by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8775
- feat: add help message for version check by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8774
- feat: splitChunks.cacheGroups.filename supports function by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8779
- feat: bench js api by codspeed by @SyMind in https://github.com/web-infra-dev/rspack/pull/8808
- feat: support module graph connection js api by @SyMind in https://github.com/web-infra-dev/rspack/pull/8812
- feat: support
match_when_emptyfor rule condition by @CPunisher in https://github.com/web-infra-dev/rspack/pull/8809 - feat: add context info issuer layer for external function by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8832
- feat: add new optimization.avoidEntryIife config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8814
- feat(incremental): side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8799
- feat: set default SWC minimizer passes to
2to reduce bundle size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8853 - feat: initialize compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8857
- feat(storage): improve storage memory by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8847
- feat: support set build info in js side by @SyMind in https://github.com/web-infra-dev/rspack/pull/8893
- feat: support invalidate persistent cache using
config.modeandconfig.nameby @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8920 - feat: support
devtoolto compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8940 - feat(plugin-css-extract): add
enforceRelativeplugin option to preserve './' by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8946 - feat: initialize builtin plugins in compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8954
- feat: support externals in compiler builder options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8959
- feat: support chunkGroup.getModulePreOrderIndex by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8588
- feat(core): bump swc_core to 9.0.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8639
- feat(core): bump swc_core to 10.0.1 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8967
- feat(core): add Yarn PnP support by @hardfist in https://github.com/web-infra-dev/rspack/pull/7639
- feat: support
optimizationin compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8979 - feat: make builtin plugin options ordered in compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8980
- feat: support custom parser for
jsontype by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8947 - feat(core): bump swc_core to 10.1.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8995
- feat: add tracing instrument for persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9001
- feat: mark
@rspack/tracingas peer dependency by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9008 - feat: initial support for compiler builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9015
- feat(plugin-asset): support
generator['asset'].importModefor Rslib by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8724 - feat: Add support for debug IDs by @timfish in https://github.com/web-infra-dev/rspack/pull/8943
Bug Fixes ๐
- fix: external module move out initial chunk by @SyMind in https://github.com/web-infra-dev/rspack/pull/8644
- fix: escape css by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8698
- fix: the wrong filename was passed when calling the assetEmitted hook by @inottn in https://github.com/web-infra-dev/rspack/pull/8709
- fix: module concatenation for dynamic export info by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8730
- fix: duplicate move lock files by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8732
- fix: fix nightly release compare-before-emit-disable test failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8739
- fix: mf parse range not compat with safari by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8749
- fix: incremental rebuild are compatible with empty artifact by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8758
- fix: correct type for
loaderContext.importModuleby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8766 - fix: allow empty persistent cache options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8813
- fix: use cgm hash to verify rename inline modules cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8820
- fix: Rspack cssParser will parse failed when url(' ') by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8824
- fix(diagnostic): improve diagnostics for swc wasm plugins when mismatch by @SyMind in https://github.com/web-infra-dev/rspack/pull/8001
- fix!: handle glob patterns ending with /** in CopyRspackPlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8803
- fix(exernals): add hash to distinguish conflict id by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8834
- fix: importModule should receive error correctly by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8827
- fix(rspack-test-tools): use
process.cwd()when outside Rspack by @colinaaa in https://github.com/web-infra-dev/rspack/pull/8845 - fix(incremental): build chunk graph with runtime chunk true by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8866
- fix: persistent cache save ModuleArgumentDependency.id by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8870
- fix(incremental): activate inactive module not codegen by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8871
- fix: should recognize negative preload value by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8862
- fix: correct css modules hashing to match Webpack when leading digit #8735 by @daveskybet in https://github.com/web-infra-dev/rspack/pull/8778
- fix: rspack_version macro support match alpha version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8880
- fix: rspack_version macro use json to parse package.json by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8883
- fix: channal error when using sync externals function by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8884
- fix: add stdout draw target to multi progress by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8889
- fix: source-map-devtool-plugin file context option by @SyMind in https://github.com/web-infra-dev/rspack/pull/8888
- fix: transform nested webpack require with innerGraph enabled by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8908
- fix: get resolved module by @SyMind in https://github.com/web-infra-dev/rspack/pull/8906
- fix: include versions in error message for version mismatch by @haocheng6 in https://github.com/web-infra-dev/rspack/pull/8899
- fix: allow custom
lazyCompilation.backend.clientby @colinaaa in https://github.com/web-infra-dev/rspack/pull/8934 - fix: lazy compilation use persistent cache restart failure by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8952
- fix: removal of unecessary underscore logic in escape job #8735 by @daveskybet in https://github.com/web-infra-dev/rspack/pull/8958
- fix: should recalculate order indices in outdated entrypoint by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8970
- fix(type): Add missing OptimizationSplitChunksNameFunction param by @Lemonexe in https://github.com/web-infra-dev/rspack/pull/8707
- fix: merge global parser and generator options by @inottn in https://github.com/web-infra-dev/rspack/pull/8984
- fix(core): calculate pkgJson from configPath dir by @hardfist in https://github.com/web-infra-dev/rspack/pull/8985
- fix: should run invalidation when watching is invalid by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8966
- fix(types): missing
lazyCompilation.backend.serveroption by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9009
Document Updates ๐
- docs: invite @GiveMe-A-Name @nyqykk to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8684
- docs: clarify support for JavaScriptModulesPlugin as partial by @steverep in https://github.com/web-infra-dev/rspack/pull/8678
- docs: fix webpack plugins overview docs panic for zh lang by @SyMind in https://github.com/web-infra-dev/rspack/pull/8689
- docs: fix link for bundle size link in English locale by @31piy in https://github.com/web-infra-dev/rspack/pull/8692
- docs: improve
resolve.mainFieldsby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8703 - docs: React Compiler for React 17 and 18 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8708
- docs: persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8725
- docs: rewrite
SwcJsMinimizerRspackPluginby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8745 - docs: add
loaderContext.importModule()by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8821 - docs: update output.clean type declaration by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8826
- docs: add FAQ for SWC plugin version unmatched by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8829
- docs: add Google and DeepSeek to who is using by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8865
- docs: make LoaderContext documentation more friendly by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8869
- docs: update persistent cache available version and configuration by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8886
- docs: correct
avoidEntryIifeadded version by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8892 - docs: persistent cache example set root.cache to true by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8894
- docs: fix typo in builtin-plugin.md by @stormslowly in https://github.com/web-infra-dev/rspack/pull/8897
- docs: complete
WarnCaseSensitiveModulesPluginby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8898 - docs: add warning about hmr fails when filename has hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8917
- docs: add loader API overview page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8928
- docs(glossary): use "module specifier" instead of "request" by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8933
- docs: add persistent cache invalidation notes by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8921
- docs: fix canary package name by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8969
- docs: update blog list by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8971
- docs: unify title capitalization style by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8973
- docs: unify title capitalization style for more docs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8983
- docs: fix loader API getLogger types documentation by @JamesNimlos in https://github.com/web-infra-dev/rspack/pull/8982
- docs: add persistent cache migration by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8978
- docs: add
invalidcompiler hook by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9003 - docs: prefer to use named import and destructuring require by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9005
Other Changes
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.16 by @renovate in https://github.com/web-infra-dev/rspack/pull/8656
- chore(deps): update dependency prettier to v3.4.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8660
- chore(deps): update pnpm to v9.15.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8662
- chore(workflow): set Issue types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8663
- chore(deps): update dependency @rspack/dev-server to v1.0.10 by @renovate in https://github.com/web-infra-dev/rspack/pull/8659
- refactor: chunk graph binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8648
- refactor: simplify file system code by @nilptr in https://github.com/web-infra-dev/rspack/pull/8654
- chore: update API change by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8700
- chore(deps): bump textwrap 0.16 for deduplication by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8699
- refactor: unify the logic of
span_to_locationinto traitSourcePositionby @shulaoda in https://github.com/web-infra-dev/rspack/pull/8640 - chore: upgrade Rust to 1.83.0 nightly by @andersk in https://github.com/web-infra-dev/rspack/pull/8712
- chore(renovate): Enable lockFileMaintenance by @andersk in https://github.com/web-infra-dev/rspack/pull/8715
- chore(deps): update rspress to v1.38.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8719
- chore(deps): update dependency mermaid to v11 by @renovate in https://github.com/web-infra-dev/rspack/pull/8720
- revert: Revert "chore: sanitize file paths" by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8721
- chore(deps): update dependency check-dependency-version-consistency to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8718
- chore(deps): update dependency is-ci to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8723
- chore(ci): only trim-paths on release and enable renovate update Cargo.lock by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8722
- chore(deps): update rust crate rspack_resolver to 0.3.6 by @renovate in https://github.com/web-infra-dev/rspack/pull/8717
- chore(deps): update rust crate napi to 3.0.0-alpha.23 by @renovate in https://github.com/web-infra-dev/rspack/pull/8661
- chore(deps): update dependency rimraf to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8727
- chore(deps): remove dependency internal-ip by @renovate in https://github.com/web-infra-dev/rspack/pull/8733
- chore(deps): remove dependency mkdirp by @renovate in https://github.com/web-infra-dev/rspack/pull/8734
- chore(deps): update dependency glob to v11 by @renovate in https://github.com/web-infra-dev/rspack/pull/8738
- chore(deps): update typescript and @microsoft/api-extractor by @renovate in https://github.com/web-infra-dev/rspack/pull/8737
- chore(deps): stop updating inventory with renovate ci by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8742
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8657
- ci: linux-musl build failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8743
- ci: build linux debug binary directly for CI purpose to speedup PR check by @xc2 in https://github.com/web-infra-dev/rspack/pull/7243
- ci: should skip trim paths for doc changes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8750
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8752
- refactor: improve storage error message by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8740
- refactor: merge binding crates into
rspack_binding_valuesby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8761 - ci: use ubuntu-22.04 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8776
- chore: remove all unnecessary workflow by @hardfist in https://github.com/web-infra-dev/rspack/pull/8783
- chore: remove issue_comment trigger from CI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8784
- ci: remove useless variable in release-pull-request.yml by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8787
- refactor: remove as much
getRawOptionsas possible by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8773 - chore(deps): update napi by @renovate in https://github.com/web-infra-dev/rspack/pull/8771
- chore(napi/build): disable dts cache of napi build by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8795
- ci: disable pkg preview by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8794
- ci: disable miri, eco-ci and benchmark check by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8797
- ci: add security pr type by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8796
- ci: add @GiveMe-A-Name to team label by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8810
- build: remove no-dts-cache by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8819
- chore: split canary to separate scope by @hardfist in https://github.com/web-infra-dev/rspack/pull/8828
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8840
- chore(deps): update pnpm to v9.15.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8841
- chore: remove unnecessary TODOs by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8850
- chore(deps): update rspress to v1.39.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8842
- style: use inlined args for
format!by @hamirmahal in https://github.com/web-infra-dev/rspack/pull/8228 - chore: ignore style changes in git blame #8228 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8852
- test: add cache test cases by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8854
- chore(deps): bump Rslib to v0.2.2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8859
- test: split incremental test cases to run in parallel by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8860
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8858
- test: refresh modified file mtime when run NEXT_START by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8863
- chore(deps): upgrade miette 7.2.0 to 7.4.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8864
- chore(deps): lock file maintenance by @renovate in https://github.com/web-infra-dev/rspack/pull/8805
- ci: add ecosystem benchmark by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8868
- chore: update version to match the latest release by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8872
- chore(deps): Upgrade @types/node 20.12.7 to 20.17.10 by @andersk in https://github.com/web-infra-dev/rspack/pull/8867
- chore: add profile choice for release canary by @hardfist in https://github.com/web-infra-dev/rspack/pull/8874
- chore(deps): update dependency css-loader to v7 by @renovate in https://github.com/web-infra-dev/rspack/pull/8024
- chore: change input_filesystem to ReadableFileSystem by @hardfist in https://github.com/web-infra-dev/rspack/pull/8878
- test: easier way to write hmr test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8849
- ci: remove nightly release by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8885
- refactor(incremental): introduce mutation update module by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8891
- test: add persistent cache test by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8890
- ci: fix ecosystem-benchmark test pr failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8902
- refactor: better storage error format by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8909
- chore(deps): update pnpm to v9.15.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8913
- chore(deps): update rspress to v1.39.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8914
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8912
- ci: fix documentation coverage check by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8907
- test: clean up unused dev dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8919
- fix(modern-module): skip the asset entry module concaten for Rslib by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8837
- ci: ecosystem-benchmark checkout failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8923
- chore(deps): Upgrade and pin webpack to 5.95.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8918
- ci: use corepack instead of pnpm/action-setup by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8926
- ci: pnpm cache install pnpm/exe when node16 by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8929
- ci: add ecosystem ci by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8931
- ci: enable ecosystem-ci on main branch by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8932
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8911
- refactor: move compiler options builder to new crate by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8941
- ci: ecosystem-ci runs on ubuntu-22.04 by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8955
- chore:
run_loaderstakes a single plugin only by @wtlin1228 in https://github.com/web-infra-dev/rspack/pull/8968 - refactor: tracing by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8195
- chore: fix typo in rspack_core/src/module.rs by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8986
- chore(deps): update pnpm to v9.15.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8989
- chore(deps): update rspress to v1.39.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8990
- chore(deps): update dependency jsdom to v26 by @renovate in https://github.com/web-infra-dev/rspack/pull/8991
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9013
- chore(deps): update lightningcss to v1.0.0-alpha.63 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8997
- ci: declare minimal permissions for Actions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9018
- ci: fix workflow permission issues by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9021
- feat: hoist compiler options builder to
Compiler::builderby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9020 - docs: rewrite CLI documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9028
- chore(deps): bump prebundle v1.2.7 to disable CI cache by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9029
- perf: persistent cache recovery use consumer mode by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9019
- docs: improve hot module replacement by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9036
- ci: ecosystem ci shows errors only on comment by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9032
- fix: patched mimalloc to use
MADV_DONTNEEDthanMADV_FREEon Linux by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9037 - chore(deps): update rspress to v1.40.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9039
- perf: disable js tracing in non-profile mode by @hardfist in https://github.com/web-infra-dev/rspack/pull/9046
- refactor: introducing the faster code-splitting algorithm by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8823
- fix: skip mf tests for new code splitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9047
- fix(core): upgrade rspack_resolver to 0.5.0 by @hardfist in https://github.com/web-infra-dev/rspack/pull/9048
- chore(deps): update dependency zx to v8 by @renovate in https://github.com/web-infra-dev/rspack/pull/9044
- fix: align
amdoption behavior with webpack by @nilptr in https://github.com/web-infra-dev/rspack/pull/9011 - docs: add parallel code splitting docs by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9051
- feat(stats): add module reason locations and module trace dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9049
- feat: using runtime_template to support output.environment by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9052
- feat: support more options in compiler builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9053
- fix: ๐ align get provided exports with webpack by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9050
- test: add basic rust benchmark by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9054
- feat: add chunkGraph.getNumberOfEntryModules by @colinaaa in https://github.com/web-infra-dev/rspack/pull/9035
- fix: add issue permission for release workflow by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9066
New Contributors
- @steverep made their first contribution in https://github.com/web-infra-dev/rspack/pull/8678
- @31piy made their first contribution in https://github.com/web-infra-dev/rspack/pull/8692
- @hamirmahal made their first contribution in https://github.com/web-infra-dev/rspack/pull/8228
- @daveskybet made their first contribution in https://github.com/web-infra-dev/rspack/pull/8778
- @haocheng6 made their first contribution in https://github.com/web-infra-dev/rspack/pull/8899
- @Lemonexe made their first contribution in https://github.com/web-infra-dev/rspack/pull/8707
- @JamesNimlos made their first contribution in https://github.com/web-infra-dev/rspack/pull/8982
- @timfish made their first contribution in https://github.com/web-infra-dev/rspack/pull/8943
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.8...v1.2.0
- 1.2.0-beta.07 Jan 2025pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.2.0-beta.0 -->
What's Changed
Exciting New Features ๐
- feat: support set build info in js side by @SyMind in https://github.com/web-infra-dev/rspack/pull/8893
- feat: support invalidate persistent cache using
config.modeandconfig.nameby @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8920 - feat: support
devtoolto compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8940 - feat(plugin-css-extract): add
enforceRelativeplugin option to preserve './' by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8946
Bug Fixes ๐
- fix: rspack_version macro use json to parse package.json by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8883
- fix: channal error when using sync externals function by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8884
- fix: add stdout draw target to multi progress by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8889
- fix: source-map-devtool-plugin file context option by @SyMind in https://github.com/web-infra-dev/rspack/pull/8888
- fix: transform nested webpack require with innerGraph enabled by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8908
- fix: get resolved module by @SyMind in https://github.com/web-infra-dev/rspack/pull/8906
- fix: include versions in error message for version mismatch by @haocheng6 in https://github.com/web-infra-dev/rspack/pull/8899
- fix: allow custom
lazyCompilation.backend.clientby @colinaaa in https://github.com/web-infra-dev/rspack/pull/8934 - fix: lazy compilation use persistent cache restart failure by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8952
Document Updates ๐
- docs: update persistent cache available version and configuration by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8886
- docs: correct
avoidEntryIifeadded version by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8892 - docs: persistent cache example set root.cache to true by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8894
- docs: fix typo in builtin-plugin.md by @stormslowly in https://github.com/web-infra-dev/rspack/pull/8897
- docs: complete
WarnCaseSensitiveModulesPluginby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8898 - docs: add warning about hmr fails when filename has hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8917
- docs: add loader API overview page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8928
- docs(glossary): use "module specifier" instead of "request" by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8933
Other Changes
- ci: remove nightly release by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8885
- refactor(incremental): introduce mutation update module by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8891
- test: add persistent cache test by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8890
- ci: fix ecosystem-benchmark test pr failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8902
- refactor: better storage error format by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8909
- chore(deps): update pnpm to v9.15.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8913
- chore(deps): update rspress to v1.39.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8914
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8912
- ci: fix documentation coverage check by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8907
- test: clean up unused dev dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8919
- fix(modern-module): skip the asset entry module concaten for Rslib by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8837
- ci: ecosystem-benchmark checkout failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8923
- chore(deps): Upgrade and pin webpack to 5.95.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8918
- ci: use corepack instead of pnpm/action-setup by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8926
- ci: pnpm cache install pnpm/exe when node16 by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8929
- ci: add ecosystem ci by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8931
- ci: enable ecosystem-ci on main branch by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8932
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8911
- refactor: move compiler options builder to new crate by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8941
New Contributors
- @haocheng6 made their first contribution in https://github.com/web-infra-dev/rspack/pull/8899
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.0-alpha.0...v1.2.0-beta.0
- 1.2.0-alpha.030 Dec 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.2.0-alpha.0 -->
Highlights ๐ก
Support for persistent cache
Rspack v1.2 introduced an experimental cache configuration that supports persistent caching, which can significantly improve hot startup speed.
When a build hits the cache, it can bring up to 60% performance improvement in real projects.
// rspack.config.js module.exports = { cache: true, experiments: { cache: { type: 'persistent', }, }, };Note that the persistent cache is still in an early experimental stage and there is a lot of room for performance improvement.
No longer watching node_modules
Rspack v1.2 no longer watching the
node_modulesdirectory by default. This can greatly reduce the number of files to watch and improve performance.According to our benchmark repo, this change will:
- Reduce memory usage by 120MB.
- Increase dev startup speed by 40%.
- Increase HMR speed by 20~30%.
This change will not affect symlinked resources in monorepo, as symlinked resources are resolved to their real path by default.
Related PR: perf: ignore watching files in node_modules by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8645
Upgrade to SWC 9.0
The Rust crate
swc_corehas been upgraded to9.0.2. Users of the SWC Wasm plugin need to ensure version consistency with theswc_corebeing used, otherwise, it may lead to unforeseen issues.For more details, see SWC Plugin Version Unmatched.
Related PR: feat(core)!: bump swc_core to 9.0.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8639
Reduced memory usage
We have optimized the data structure used to store strings during the
rspack-sourcescomputation process. Throughout the computation, all string data points to the string heap memory of the root node, effectively avoiding the generation of new string allocations during the computation.Related PR: perf: reduce memory consumption of CachedSource by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8666
Reduced bundle size
Rspack v1.2.0 set default SWC minimizer
passesto 2 to reduce bundle size by 1%-7%.passesis the the maximum number of times to run compress. In some cases, more than one pass leads to further compressed code. Given Rspack's inherent speed, we've determined that using 2passesby default strikes an optimal balance between build performance and bundle size.Related PR: feat: set default SWC minimizer passes to
2to reduce bundle size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8853Parallelize side effects optimization
The implementation of side effects optimization has been refactored to be simpler and more parallelism-friendly. It can take full advantage of parallelism to improve performance. In tested projects, there is typically a 2x-3x performance improvement at this stage.
Related PR: perf: parallelize side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8781
Disable WarnCaseSensitiveModulesPlugin by default
The WarnCaseSensitiveModulesPlugin will check the paths of modules and issue warnings for modules that conflict when their paths are all in lowercase. We used to enable it by default, but since it is only a "linter" plugin and it has additional performance overhead especially in development mode. So now we disable it by default, and recommend to use
WarnCaseSensitiveModulesPluginto add it to your own needs.// rspack.config.js module.exports = { plugins: [new rspack.WarnCaseSensitiveModulesPlugin()], };Related PR: feat: export
WarnCaseSensitiveModulesPluginand disable it by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8697What's Changed
Performance Improvements โก
- perf: remove tokio-console to reduce binary size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8681
- perf: bump miette v7 to reduce binary size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8694
- perf(incremental): compute affected cgm incrementally by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8688
- perf: reduce memory consumption of
CachedSourceby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8666 - perf: faster
substringofrspack-sourcesby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8731 - perf: side effects when there aren't too many optimizable dependencies by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8746
- perf: parallelize side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8781
- perf(deps): bump
fast-globto v0.4.1 by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8800 - perf: improve FlagDependencyExportsPlugin for large JSON by depth by @hai-x in https://github.com/web-infra-dev/rspack/pull/8802
- perf(incremental): better parallel for side effects plugin rebuild by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8848
- perf(cli): remove Node.js semver checker by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8855
- perf(cli): lazy import rechoir and interpret by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8856
Exciting New Features ๐
- feat: pass compiler_path to rust Compiler by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8665
- feat: cache storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8466
- feat(incremental): named chunk ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8652
- feat: support additional-pass hook by @SyMind in https://github.com/web-infra-dev/rspack/pull/8672
- feat: improve cache storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8675
- feat: exports info binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8677
- feat: chunkGraph.getModuleId binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8680
- feat: persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8687
- feat: support
sizeoption for optimization.chunkIds config by @inottn in https://github.com/web-infra-dev/rspack/pull/8642 - feat: do not cleanup Rust instance by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8702
- feat: export
WarnCaseSensitiveModulesPluginand disable it by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8697 - feat: cache storage move lock file by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8686
- feat: addInclude binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8713
- feat: update experiments.cache signature by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8729
- feat(mf): bump @module-federation/runtime-tools to 0.8.4 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8728
- feat!: align AssetGeneratorDataUrlFunction with webpack by @inottn in https://github.com/web-infra-dev/rspack/pull/8614
- feat: support module.generator.outputPath by @inottn in https://github.com/web-infra-dev/rspack/pull/8554
- feat: add macro to get rspack version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8760
- feat: persistent cache expose error to compilation.diagnostic by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8765
- feat: persistent cache in production mode wait for save to complete by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8777
- feat: split big chunks based on modules path similarities by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8775
- feat: add help message for version check by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8774
- feat: splitChunks.cacheGroups.filename supports function by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8779
- feat: bench js api by codspeed by @SyMind in https://github.com/web-infra-dev/rspack/pull/8808
- feat: support module graph connection js api by @SyMind in https://github.com/web-infra-dev/rspack/pull/8812
- feat: support
match_when_emptyfor rule condition by @CPunisher in https://github.com/web-infra-dev/rspack/pull/8809 - feat: add context info issuer layer for external function by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8832
- feat: add new optimization.avoidEntryIife config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8814
- feat(incremental): side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8799
- feat: initialize compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8857
- feat(storage): improve storage memory by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8847
Bug Fixes ๐
- fix: external module move out initial chunk by @SyMind in https://github.com/web-infra-dev/rspack/pull/8644
- fix: escape css by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8698
- fix: the wrong filename was passed when calling the assetEmitted hook by @inottn in https://github.com/web-infra-dev/rspack/pull/8709
- fix: module concatenation for dynamic export info by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8730
- fix: duplicate move lock files by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8732
- fix: fix nightly release compare-before-emit-disable test failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8739
- fix: mf parse range not compat with safari by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8749
- fix: incremental rebuild are compatible with empty artifact by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8758
- fix: correct type for
loaderContext.importModuleby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8766 - fix: allow empty persistent cache options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8813
- fix: use cgm hash to verify rename inline modules cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8820
- fix: Rspack cssParser will parse failed when url(' ') by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8824
- fix(diagnostic): improve diagnostics for swc wasm plugins when mismatch by @SyMind in https://github.com/web-infra-dev/rspack/pull/8001
- fix!: handle glob patterns ending with /** in CopyRspackPlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8803
- fix(exernals): add hash to distinguish conflict id by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8834
- fix: importModule should receive error correctly by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8827
- fix(rspack-test-tools): use
process.cwd()when outside Rspack by @colinaaa in https://github.com/web-infra-dev/rspack/pull/8845 - fix(incremental): build chunk graph with runtime chunk true by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8866
- fix: persistent cache save ModuleArgumentDependency.id by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8870
- fix(incremental): activate inactive module not codegen by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8871
- fix: should recognize negative preload value by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8862
- fix: correct css modules hashing to match Webpack when leading digit #8735 by @daveskybet in https://github.com/web-infra-dev/rspack/pull/8778
- fix: rspack_version macro support match alpha version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8880
Document Updates ๐
- docs: invite @GiveMe-A-Name @nyqykk to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8684
- docs: clarify support for JavaScriptModulesPlugin as partial by @steverep in https://github.com/web-infra-dev/rspack/pull/8678
- docs: fix webpack plugins overview docs panic for zh lang by @SyMind in https://github.com/web-infra-dev/rspack/pull/8689
- docs: fix link for bundle size link in English locale by @31piy in https://github.com/web-infra-dev/rspack/pull/8692
- docs: improve
resolve.mainFieldsby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8703 - docs: React Compiler for React 17 and 18 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8708
- docs: persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8725
- docs: rewrite
SwcJsMinimizerRspackPluginby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8745 - docs: add
loaderContext.importModule()by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8821 - docs: update output.clean type declaration by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8826
- docs: add FAQ for SWC plugin version unmatched by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8829
- docs: add Google and DeepSeek to who is using by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8865
- docs: make LoaderContext documentation more friendly by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8869
Other Changes
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.16 by @renovate in https://github.com/web-infra-dev/rspack/pull/8656
- chore(deps): update dependency prettier to v3.4.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8660
- chore(deps): update pnpm to v9.15.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8662
- chore(workflow): set Issue types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8663
- chore(deps): update dependency @rspack/dev-server to v1.0.10 by @renovate in https://github.com/web-infra-dev/rspack/pull/8659
- refactor: chunk graph binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8648
- refactor: simplify file system code by @nilptr in https://github.com/web-infra-dev/rspack/pull/8654
- chore: update API change by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8700
- chore(deps): bump textwrap 0.16 for deduplication by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8699
- refactor: unify the logic of
span_to_locationinto traitSourcePositionby @shulaoda in https://github.com/web-infra-dev/rspack/pull/8640 - chore: upgrade Rust to 1.83.0 nightly by @andersk in https://github.com/web-infra-dev/rspack/pull/8712
- chore(renovate): Enable lockFileMaintenance by @andersk in https://github.com/web-infra-dev/rspack/pull/8715
- chore(deps): update rspress to v1.38.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8719
- chore(deps): update dependency mermaid to v11 by @renovate in https://github.com/web-infra-dev/rspack/pull/8720
- revert: Revert "chore: sanitize file paths" by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8721
- chore(deps): update dependency check-dependency-version-consistency to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8718
- chore(deps): update dependency is-ci to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8723
- chore(ci): only trim-paths on release and enable renovate update Cargo.lock by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8722
- chore(deps): update rust crate rspack_resolver to 0.3.6 by @renovate in https://github.com/web-infra-dev/rspack/pull/8717
- chore(deps): update rust crate napi to 3.0.0-alpha.23 by @renovate in https://github.com/web-infra-dev/rspack/pull/8661
- chore(deps): update dependency rimraf to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8727
- chore(deps): remove dependency internal-ip by @renovate in https://github.com/web-infra-dev/rspack/pull/8733
- chore(deps): remove dependency mkdirp by @renovate in https://github.com/web-infra-dev/rspack/pull/8734
- chore(deps): update dependency glob to v11 by @renovate in https://github.com/web-infra-dev/rspack/pull/8738
- chore(deps): update typescript and @microsoft/api-extractor by @renovate in https://github.com/web-infra-dev/rspack/pull/8737
- chore(deps): stop updating inventory with renovate ci by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8742
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8657
- ci: linux-musl build failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8743
- ci: build linux debug binary directly for CI purpose to speedup PR check by @xc2 in https://github.com/web-infra-dev/rspack/pull/7243
- ci: should skip trim paths for doc changes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8750
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8752
- refactor: improve storage error message by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8740
- refactor: merge binding crates into
rspack_binding_valuesby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8761 - ci: use ubuntu-22.04 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8776
- chore: remove all unnecessary workflow by @hardfist in https://github.com/web-infra-dev/rspack/pull/8783
- chore: remove issue_comment trigger from CI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8784
- ci: remove useless variable in release-pull-request.yml by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8787
- refactor: remove as much
getRawOptionsas possible by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8773 - chore(deps): update napi by @renovate in https://github.com/web-infra-dev/rspack/pull/8771
- chore(napi/build): disable dts cache of napi build by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8795
- ci: disable pkg preview by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8794
- ci: disable miri, eco-ci and benchmark check by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8797
- ci: add security pr type by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8796
- ci: add @GiveMe-A-Name to team label by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8810
- build: remove no-dts-cache by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8819
- chore: split canary to separate scope by @hardfist in https://github.com/web-infra-dev/rspack/pull/8828
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8840
- chore(deps): update pnpm to v9.15.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8841
- chore: remove unnecessary TODOs by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8850
- chore(deps): update rspress to v1.39.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8842
- style: use inlined args for
format!by @hamirmahal in https://github.com/web-infra-dev/rspack/pull/8228 - chore: ignore style changes in git blame #8228 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8852
- test: add cache test cases by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8854
- chore(deps): bump Rslib to v0.2.2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8859
- test: split incremental test cases to run in parallel by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8860
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8858
- test: refresh modified file mtime when run NEXT_START by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8863
- chore(deps): upgrade miette 7.2.0 to 7.4.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8864
- chore(deps): lock file maintenance by @renovate in https://github.com/web-infra-dev/rspack/pull/8805
- ci: add ecosystem benchmark by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8868
- chore: update version to match the latest release by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8872
- chore(deps): Upgrade @types/node 20.12.7 to 20.17.10 by @andersk in https://github.com/web-infra-dev/rspack/pull/8867
- chore: add profile choice for release canary by @hardfist in https://github.com/web-infra-dev/rspack/pull/8874
- chore(deps): update dependency css-loader to v7 by @renovate in https://github.com/web-infra-dev/rspack/pull/8024
- chore: change input_filesystem to ReadableFileSystem by @hardfist in https://github.com/web-infra-dev/rspack/pull/8878
- test: easier way to write hmr test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8849
New Contributors
- @steverep made their first contribution in https://github.com/web-infra-dev/rspack/pull/8678
- @31piy made their first contribution in https://github.com/web-infra-dev/rspack/pull/8692
- @hamirmahal made their first contribution in https://github.com/web-infra-dev/rspack/pull/8228
- @daveskybet made their first contribution in https://github.com/web-infra-dev/rspack/pull/8778
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.8...v1.2.0-alpha.0
- 1.1.819 Dec 2024
Release notes
Open source โSecurity Vulnerability Report
Overview
This is a re-release version of v1.1.6
On 12/19/2024, 02:01 (UTC), we discovered that our npm packages
@rspack/coreand@rspack/cliwere maliciously attacked. The attacker releasedv1.1.7using a compromised npm token, which contained malicious code. We took immediate action upon discovering the issue.Impact
- Affected versions:
@rspack/coreand@rspack/cliv1.1.7 - Duration: 12/19/2024, 02:01 (UTC), lasting approximately 1 hour
- Malicious code impact: After npm install, the postinstall script in
package.jsonruns malicious code indist/util/support.js. See Malicious code analysis for more details.
Actions Taken
Upon discovery, we immediately deprecated the affected
v1.1.7, redirected the npm latest tag tov1.1.6, and reset all related tokens. Subsequently, we released a secure new versionv1.1.8.Recommended Actions
If you installed
v1.1.7during the affected period, please:- Update to the latest safe version immediately:
@rspack/coreand@rspack/clito>= 1.1.8 - Check your system for any unusual activity
Apology and Commitment
We deeply apologize for the risks caused by this incident. To prevent similar incidents from happening again, we will implement stricter token management protocols and enhance our security review processes.
If you have any questions or discover any suspicious activity, please create an issue or send an email to: [email protected]
We will continue to follow and respond to community feedback.
- Affected versions:
- 1.1.610 Dec 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.1.6 -->
What's Changed
Highlights ๐ก
Reduced memory usage
Rspack's memory usage in large projects has been significantly reduced since v1.1.6:
<img src="https://github.com/user-attachments/assets/77136769-ab62-4382-b420-a5608875fc42" width="600" />
Related PRs:
- perf: improve cached source data struct by @SyMind in https://github.com/web-infra-dev/rspack/pull/8602
- perf: reduce heap allocations for
RuntimeModuleby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8620 - perf: avoid heap allocation for getting connections by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8625
Performance Improvements โก
- perf: replace
RawSourcewith smallerRawStringSourceandRawBufferSourceby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8629
Exciting New Features ๐
- feat: implement output.clean.keep: Option<string> by @ClSlaid in https://github.com/web-infra-dev/rspack/pull/8479
- feat: support
output.trustedTypes.onPolicyCreationFailureby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8619 - feat(incremental): named module ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8593
- feat: support
getResolvein external function context by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8577 - feat: add intermediate file system by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8631
- feat(persistent cache): add make occasion by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8586
Bug Fixes ๐
- fix: importModule should have err by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8590
- fix: trusted type should add module runtime requirements by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8617
- fix: source map file should use contenthash itself by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8623
- fix: sync minify file comments from SWC by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8628
- fix: generate wrong chunk filename runtime code on win32 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8622
- fix: avoid unnamed module ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8634
- fix: passively rebuild modules imported by
importModuleby @CPunisher in https://github.com/web-infra-dev/rspack/pull/8595
Document Updates ๐
- docs: fix typo by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8607
- docs: rewrite
CopyRspackPlugindocumentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8621 - docs: fix error links by @xuexb in https://github.com/web-infra-dev/rspack/pull/8635
Other Changes
- chore: add release-check task by @hardfist in https://github.com/web-infra-dev/rspack/pull/8578
- refactor: remove compilation.built_module by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8589
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8610
- chore(deps): update rspress to v1.37.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8613
- chore(deps): update pnpm to v9.14.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8612
- chore: remove tracking subjects by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8616
- test(snapshot): make snapshots cleaner and update path-serializer 0.3.4 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8161
- chore(deps): update napi by @renovate in https://github.com/web-infra-dev/rspack/pull/8611
- test: create issues for failed webpack test by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8618
- refactor: improve dependency location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8606
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8198
- chore(deps): update crates (major) by @renovate in https://github.com/web-infra-dev/rspack/pull/6926
- ci: run miri on main by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8632
- chore: remove unnecessary code by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8641
New Contributors
- @ClSlaid made their first contribution in https://github.com/web-infra-dev/rspack/pull/8479
- @cbbfcd made their first contribution in https://github.com/web-infra-dev/rspack/pull/8607
- @xuexb made their first contribution in https://github.com/web-infra-dev/rspack/pull/8635
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.5...v1.1.6
- 1.1.53 Dec 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.1.5 -->
What's Changed
Highlights ๐ก
refactor css loading
Since #7306, we have aligned with webpack's CSS loading strategy, which assumed that CSS finished loading before executing JavaScript, which is not true. Both Rspack and webpack have changed the CSS loading strategy to address this issue.
For more specific details on the original problem, please refer to this link. Webpack fixed this in https://github.com/webpack/webpack/pull/19021 Rspack fixed this in #8534
Performance Improvements โก
- perf: create tsfn error resolver once by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8540
- perf: mem cache for chunk render source by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8528
- perf: move from
Bufferto zero-copyBufferSliceby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8574 - perf: register cleanup hook on global by @SyMind in https://github.com/web-infra-dev/rspack/pull/8564
- perf: reduce memory consumption of paths by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8581
Exciting New Features ๐
- feat(mf): recursive search for versions of shared dependencies by @inottn in https://github.com/web-infra-dev/rspack/pull/8388
- feat: support output.environment.nodePrefixForCoreModules by @inottn in https://github.com/web-infra-dev/rspack/pull/8516
- feat(rspack_cacheable):
asattr support use with dyn trait by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8535 - feat: support analysing AMD module format by @nilptr in https://github.com/web-infra-dev/rspack/pull/8389
- feat(cli): set default
process.titleby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8576 - feat: support chunksSortMode option to HtmlRspackPlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8585
Bug Fixes ๐
- fix: reset the progress bar in the correct hook by @inottn in https://github.com/web-infra-dev/rspack/pull/8429
- fix: get encoded asset content correctly by @inottn in https://github.com/web-infra-dev/rspack/pull/8545
- fix: missing dependencies type in Module class by @SyMind in https://github.com/web-infra-dev/rspack/pull/8552
- fix: chunk render cache panic on css extract diagnostics by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8562
- fix: should report errors if stats was being accessed after the compiler was closed by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8561
- fix: add missing affectedHooks parameter to ProvidePlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8570
- fix: rule.issuerLayer by @SyMind in https://github.com/web-infra-dev/rspack/pull/8572
- fix: should have module-post-order-index when incremental build by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8559
- fix: rebuild should reset module.preOrderIndex by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8413
- fix(incremental): infer async modules test cases and add loggings for incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8580
- fix: prevent from accessing outdated compilation by @SyMind in https://github.com/web-infra-dev/rspack/pull/8591
- fix(incremental): get affected modules with chunk graph perf regression by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8592
Document Updates ๐
- docs: add examples for watchOptions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8532
- docs: polish Rule configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8565
Other Changes
- refactor: remove unnecessary filesystem trait by @hardfist in https://github.com/web-infra-dev/rspack/pull/8525
- chore(deps): update dependency prettier to v3.4.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8544
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8542
- chore(deps): update pnpm to v9.14.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8543
- refactor: css loading by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8534
- test: create issues for webpack-test failures by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8551
- chore: update rspress to v1.37.2, fix sass test case warnings by @renovate in https://github.com/web-infra-dev/rspack/pull/8514
- refactor: remove unused cssHeadDataCompression config by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8555
- chore: bump rspack crate to 0.2.0 by @hardfist in https://github.com/web-infra-dev/rspack/pull/8573
- chore: fix crate publish problems by @hardfist in https://github.com/web-infra-dev/rspack/pull/8575
- refactor: CSS HMR by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8587
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.4...v1.1.5
- 1.1.426 Nov 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.1.4 -->
What's Changed
Exciting New Features ๐
- feat(cacheable): add AsOwned by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8500
- feat: rspack_cacheable support
asattr by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8521 - feat: rspack_cacheable support rspack_sources::BoxSource by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8527
Bug Fixes ๐
- fix(incremental): wrong runtime module when rebuild by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8504
- fix:
WebWorkerTemplatePluginshould generate import-scripts chunk loading runtime by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8523 - fix: handle DataURI without base64 word by @inottn in https://github.com/web-infra-dev/rspack/pull/8380
- fix: variable name conflict with concatenate and runtime code by @inottn in https://github.com/web-infra-dev/rspack/pull/8386
Document Updates ๐
- docs: add examples for ESM loader by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8498
- docs: chunk level incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8505
- docs: remove wrong short argument -w for --json in cli.mdx by @stefanseeger in https://github.com/web-infra-dev/rspack/pull/8507
- docs: update plugin compatible table by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8526
Other Changes
- chore(deps): update dependency @swc/plugin-remove-console to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8515
- test: create issues for webpack-test failure cases by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8491
- refactor: rename FileSystem to SyncFileSystem by @hardfist in https://github.com/web-infra-dev/rspack/pull/8520
- refactor: unify to filesystem in rspack_core by @hardfist in https://github.com/web-infra-dev/rspack/pull/8522
- chore: update error message for task loop by @wtlin1228 in https://github.com/web-infra-dev/rspack/pull/8418
New Contributors
- @stefanseeger made their first contribution in https://github.com/web-infra-dev/rspack/pull/8507
- @wtlin1228 made their first contribution in https://github.com/web-infra-dev/rspack/pull/8418
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.3...v1.1.4
- 1.1.321 Nov 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.1.3 -->
What's Changed
Performance Improvements โก
- perf: reduce source map json stringify by @SyMind in https://github.com/web-infra-dev/rspack/pull/8468
- perf: move matching logic in source map plugin to rust side by @inottn in https://github.com/web-infra-dev/rspack/pull/8481
Exciting New Features ๐
- feat: js module graph api by @SyMind in https://github.com/web-infra-dev/rspack/pull/8470
Bug Fixes ๐
- fix: unstable stats test snapshot by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8482
- fix(incremental): disappeared chunk panic in chunks render by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8492
- fix: css escape when consume string by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8495
Other Changes
- chore(ci): add rust bench ci by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8476
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.13 by @renovate in https://github.com/web-infra-dev/rspack/pull/8477
- chore(deps): update pnpm to v9.14.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8478
- test: move e2e to the test folder by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8486
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.2...v1.1.3
- 1.1.219 Nov 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at changeset-release/main -->
What's Changed
๐ก Highlights
DefinePlugin destructuring optimization
Rspack v1.1.2 improved the output of
DefinePluginby eliminating unused object properties from the final bundle, resulting in a smaller output size:<img src="https://github.com/user-attachments/assets/e6e3254a-6322-4c8e-9489-6728996f9203" width="800" >
Exciting New Features ๐
- feat(externals): support 'commonjs-import' type by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8414
- feat(incremental): chunk level incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8367
- feat: unify js dependency by @SyMind in https://github.com/web-infra-dev/rspack/pull/8394
- feat: support attributes for ESM external module by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8422
- feat: align webpack DefinePlugin for destructuring optimization by @inottn in https://github.com/web-infra-dev/rspack/pull/8452
- feat(incremental): render chunk manifest by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8440
- feat(persistent cache): add snapshot module by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8424
Bug Fixes ๐
- fix: output should be consistent when using splitChunks by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8425
- fix(core): remove hang risk caused by coop budget in tokio by @hardfist in https://github.com/web-infra-dev/rspack/pull/8434
- fix: should not free native compiler while compiler is running by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8437
- fix: align bytes ptr address for
cacheable::from_byteby @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8450 - fix: correct favicon path when output.publicPath is set to
autoby @inottn in https://github.com/web-infra-dev/rspack/pull/8415 - fix(lightningcss): align type with lightningcss by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8456
- fix: the attribute values of HTML tags should not be converted to lowercase by @inottn in https://github.com/web-infra-dev/rspack/pull/8443
- fix: should respect max size correctly by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8442
- fix(modern-module): remove extra import statement for star reexport by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8457
- fix: set the correct asset_info when extracting css by @inottn in https://github.com/web-infra-dev/rspack/pull/8454
- fix: linux musl resolve failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8467
- fix: modify css loading runtime panic by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8475
Document Updates ๐
- docs: polish module methods documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8448
- docs: update Prefetching link by @xiaohp in https://github.com/web-infra-dev/rspack/pull/8449
- docs: invite @inottn to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8462
- docs: add more JavaScript runtimes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8464
Other Changes
- test: delete test.filter.js if test is pass in tests/webpack-test by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8409
- test: add miri testing by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8426
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8416
- chore(rspack-cli): add strip-ansi in dev deps by @stormslowly in https://github.com/web-infra-dev/rspack/pull/8432
- refactor: rename async_run to background_run & sync_run to main_run by @hardfist in https://github.com/web-infra-dev/rspack/pull/8385
- test: replace strip-ansi with Node.js builtin util by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8439
- test: fix some unstable test cases for layer stats by @easy1090 in https://github.com/web-infra-dev/rspack/pull/8453
- build(windows): static linking VS CRT on aarch64 msvc !windows by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8465
- chore(deps): update napi by @renovate in https://github.com/web-infra-dev/rspack/pull/8417
- ci(release): fix release pull request by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8472
New Contributors
- @stormslowly made their first contribution in https://github.com/web-infra-dev/rspack/pull/8432
- @xiaohp made their first contribution in https://github.com/web-infra-dev/rspack/pull/8449
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.1...v1.1.2
- 1.1.112 Nov 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.1.1 -->
๐ก Highlights
Support for DllPlugin
This release introduced rspack.DllPlugin and rspack.DllReferencePlugin in #8296 to be compatible with webpack's DLLPlugin and DllReferencePlugin.
DLL plugins help you improve build performance by separating rarely-changed code (like vendor dependencies) into separate bundles. The term "DLL" stands for Dynamic-link library. See here for more information.
What's Changed
Exciting New Features ๐
- feat: add memory fs by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8372
- feat: support rspack.DllPlugin & rspack.DllReferencePlugin by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8296
Bug Fixes ๐
- fix(cli): Run config function before looking for
--config-nameby @andersk in https://github.com/web-infra-dev/rspack/pull/8363 - fix: items_to_regexp for chinese by @SyMind in https://github.com/web-infra-dev/rspack/pull/8368
- fix: allow passing Infinity to parser.asset.dataUrlCondition.maxSize by @inottn in https://github.com/web-infra-dev/rspack/pull/8344
- fix(side effects): should optimize for same target export by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8371
- fix: tapable run in wrong closure by @SyMind in https://github.com/web-infra-dev/rspack/pull/8376
- fix: required amd in umd external object by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8369
- fix: panic in sort of chunk combination bucket by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8392
- fix: compile time evaluation of
__webpack_layer__by @inottn in https://github.com/web-infra-dev/rspack/pull/8381 - fix: panic when imported json file is empty by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8397
- fix: css runtime should have hmr handler when lazy-compilation by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8400
- fix: fix
Compilernot getting freed after use by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8268
Document Updates ๐
- docs: announcing v1.1 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8332
- docs: add guide for TypeScript configuration file by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8370
- docs: add bluesky file by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8373
Other Changes
- refactor: rspack_fs use
Utf8PathandFileMetadataby @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8366 - chore: bump to napi@3 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8359
- refactor(napi): prevent depend on ClassInstance by @SyMind in https://github.com/web-infra-dev/rspack/pull/8377
- refactor(napi): rm unreachable FromNapiValue by @SyMind in https://github.com/web-infra-dev/rspack/pull/8378
- build: use symlinked executables instead of command shims by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8382
- refactor: reuse AssetConditions for banner plugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8350
- test: add missing dev dependencies back by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8398
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.0...v1.1.1
- 1.1.07 Nov 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.1.0 -->
See Announcing Rspack 1.1 for more details.
What's Changed
Performance Improvements โก
- perf: incremental build chunk graph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7721
- perf: enable
xxhash64hash function by default by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8249 - perf: enable SWC
disableAllLintsby default to reduce overhead by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8275 - perf(core): replace
neo-asyncwith a minimal helper by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8282 - perf: remove unnecessary regex by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8320
- perf(cli): enable Node.js compile cache by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8331
Exciting New Features ๐
- feat: add setters for errors and warnings in Compilation by @inottn in https://github.com/web-infra-dev/rspack/pull/8115
- feat(CLI): make
@rspack/clidual package and bundle with Rslib by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8187 - feat: add rspack_cacheable lib by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8156
- feat: keep SWC types up to date by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8215
- feat: support wrappedContextRegExp by @inottn in https://github.com/web-infra-dev/rspack/pull/8149
- feat: introduce RemoveDuplicateModulesPlugin by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8128
- feat(html): support function filename and
[name]in filename by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7753 - feat: module.modules by @SyMind in https://github.com/web-infra-dev/rspack/pull/8192
- feat: support
output.compareBeforeEmitby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8245 - feat(incremental): free space for revoked modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8250
- feat(core): bump swc to 3.0.1 by @hardfist in https://github.com/web-infra-dev/rspack/pull/8264
- feat: add read API to output file system by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8274
- feat(rspack/stats): support the option groupModulesByLayer of stats by @easy1090 in https://github.com/web-infra-dev/rspack/pull/8283
- feat: unify js module by @SyMind in https://github.com/web-infra-dev/rspack/pull/8210
- feat(core): improve progress plugin for multi compiler by @hardfist in https://github.com/web-infra-dev/rspack/pull/8301
- feat: unify module in loader context by @SyMind in https://github.com/web-infra-dev/rspack/pull/8262
- feat(core): bump swc to 4.0.2 by @hardfist in https://github.com/web-infra-dev/rspack/pull/8322
- feat: use lightningcss v1.0.0-alpha.60 stead of lightningcss_rs by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8324
- feat: throw error for outdated compilation by @SyMind in https://github.com/web-infra-dev/rspack/pull/8315
- feat: support compilation.modules[i].dependencies by @inottn in https://github.com/web-infra-dev/rspack/pull/8050
- feat(core): bump swc to 5.0.0 by @hardfist in https://github.com/web-infra-dev/rspack/pull/8354
- feat: improve description, types and JSDoc for entry options by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8361
Bug Fixes ๐
- fix: temporarily use
lightingcss_rsto fix CSS property order by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8182 - fix(deps): upgrade rspack_resolver 0.3.5 to fix extensionAlias edge cases by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8188
- fix: should correct cacheGroups test regex by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8204
- fix(type):
rspackfunction type in cjs require by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8169 - fix(modern-module): concatenate entry module regardless bail reasons by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8165
- fix(ci): trigger
pkg-previewwhen the needs are skipped by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8216 - fix: incremental provided exports should rebuild clean exports info by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8221
- fix: module_executor support layer by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8212
- fix: expose incremental.buildChunkGraph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8240
- fix: compile time evaluation of require.ensure by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8242
- fix(cli): display the error which is thrown by the plugin during the starting of
rspack serveby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8244 - fix: preserve star export from external module by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8217
- fix: sourceMapFilename is relative by @SyMind in https://github.com/web-infra-dev/rspack/pull/8269
- fix(type): Make iterators compatible with TS 5.6
--target ESNextby @andersk in https://github.com/web-infra-dev/rspack/pull/8279 - fix(core): remove unused source files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8285
- fix: types and docs of umd external object by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8286
- fix(test-tools): update peer dependency @rspack/core to v1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8289
- fix(type): Patch rollup-plugin-dts bug that broke prebundled zod by @andersk in https://github.com/web-infra-dev/rspack/pull/8306
- fix: hotUpdate chunk should have correct runtime by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8273
- fix: error for set user request by @SyMind in https://github.com/web-infra-dev/rspack/pull/8307
- fix: falsy rule should be filtered by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8297
- fix: use incremental in production build by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8311
- fix: correct usage of
pnpm --filterin package scripts by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8319 - fix: runtime chunk hash should respect their reference order by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8303
- fix(ci): pkg.pr.preview not work by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8325
- fix: file dependencies are lost when css module fails by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8328
- fix: code auto merging error by @SyMind in https://github.com/web-infra-dev/rspack/pull/8341
- fix(cli): missing
exports.typesfield by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8355 - fix(tests): layer-stats snapshot problem by @easy1090 in https://github.com/web-infra-dev/rspack/pull/8356
- fix: correct split-chunks tests by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8357
- fix(experiments css): should preserve keywords decl and compose ident for self reference by @Austaras in https://github.com/web-infra-dev/rspack/pull/8225
- fix: import order change should re-seal by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8358
- fix(core): bump swc to 5.0.1 by @hardfist in https://github.com/web-infra-dev/rspack/pull/8362
Document Updates ๐
- docs: update ContextModuleFactory hook by @9aoy in https://github.com/web-infra-dev/rspack/pull/8178
- docs: correct ES modules and some other spellings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8191
- docs: add tips and examples for experiments configs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8189
- docs: use ApiMeta specific label instead of Webpack specific chapter by @9aoy in https://github.com/web-infra-dev/rspack/pull/8186
- docs: update links in README by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8203
- docs: add layer examples and correct types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8202
- docs: fix link is 404 in Guide by @nobuaki0331 in https://github.com/web-infra-dev/rspack/pull/8223
- docs: correct the format of defaultValue by @inottn in https://github.com/web-infra-dev/rspack/pull/8222
- docs: should enable swc
keepImportAttributesconfiguration when useRule.withby @9aoy in https://github.com/web-infra-dev/rspack/pull/8239 - docs: addedVersion should link to release tag by @9aoy in https://github.com/web-infra-dev/rspack/pull/8241
- docs: update Rspack roadmap by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8246
- docs: add license to website footer by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8261
- docs(swc-loader): add example for syntax lowering and polyfill by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8265
- docs: fix inline match resource typo by @9aoy in https://github.com/web-infra-dev/rspack/pull/8292
- docs: add docs for incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8293
- docs: add swc cacheRoot guide by @9aoy in https://github.com/web-infra-dev/rspack/pull/8308
- docs: add Docusaurus to ecosystem by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8336
- docs: add Nuxt to ecosystem by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8338
- docs: improve default value, types and examples for
optimizationby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8339 - docs: fix missing internal plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8343
Other Changes
- refactor: add JSDoc to improve config.experiments types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8184
- test: rename harmony to ESM by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8183
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/6596
- chore(deps): update dependency exit-hook to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8193
- chore(deps): update pnpm to v9.12.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8199
- refactor: collect rebuild modules mutations in make by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8196
- refactor: add JSDoc to improve config.wath types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8201
- test: add
rspack.defaultshould not exist test by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8207 - chore(typo): rename
lightningCssMiminizerPlugin.tsfile by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8214 - refactor: add JSDoc to improve config.devServer type by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8213
- refactor: add JSDoc to improve config.ignoreWarnings, profile, bail types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8230
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/8200
- refactor: add JSDoc to improve config.performance by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8231
- refactor: add JSDoc to improve rspack config types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8233
- ci: allow to use self-host runner when preview package by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8236
- ci: allow to get label from self host runner by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8237
- chore: add Debug trait for FileSystem and Make Task by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8252
- ci: allow aarch64 gnu compile on github runner in pkg preview by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8253
- test: remove copy plugin build folder by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8251
- ci: create prerelease pull request by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8263
- ci: fix pretag default value by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8266
- chore(deps): update pnpm to v9.12.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8256
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8255
- chore: remove arco-pro diff test case by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8270
- chore(ci): change repo owner of rspack-ecosystem-ci by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8272
- chore(ci): fix the syntax error by @inottn in https://github.com/web-infra-dev/rspack/pull/8278
- refactor: module.size fn should a option compilation by @SyMind in https://github.com/web-infra-dev/rspack/pull/8281
- test: keep test case stable with different version length by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8287
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/8257
- chore(docs): add groupModulesByLayer doc by @easy1090 in https://github.com/web-infra-dev/rspack/pull/8284
- refactor(rspack_napi): simplify the logic of
JsRegExpby @shulaoda in https://github.com/web-infra-dev/rspack/pull/8254 - chore(deps): update npm dev dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/6429
- chore(format): run prettier format by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8295
- chore(ci/deps): update renovate by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8294
- refactor: use async thread pool by @hardfist in https://github.com/web-infra-dev/rspack/pull/8226
- chore(renovate): manually update peer dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8317
- chore: prevent clone when create ModuleIdentifier by @SyMind in https://github.com/web-infra-dev/rspack/pull/8330
- refactor(rspack): improve dependency location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8313
- refactor(rspack): remove
RawRegexandJsRegExpby @shulaoda in https://github.com/web-infra-dev/rspack/pull/8298 - chore: fix the incorrect links in the comments by @inottn in https://github.com/web-infra-dev/rspack/pull/8340
- refactor: css-module should have strict buildInfo by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8342
- refactor: rm UNASSOCIATED_MODULE_INSTANCE_REFS by @SyMind in https://github.com/web-infra-dev/rspack/pull/8327
- chore(deps): update rspress to v1.35.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8348
- chore(deps): update rspress to v1.35.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8360
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8345
New Contributors
- @nobuaki0331 made their first contribution in https://github.com/web-infra-dev/rspack/pull/8223
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.14...v1.1.0
- 1.1.0-beta.031 Oct 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.1.0-beta.0 -->
๐ก Highlights
New
experiments.incrementalWe are implementing a new incremental rebuild architecture that makes the HMR much faster. It's an experimental feature in v1.1 and we still have more work to do before we stabilize it, but for now we have implemented parts of it and seen significant performance boosts.
In a case of 10000 React components, the HMR becomes 38% faster:
<img src="https://github.com/user-attachments/assets/7b8aaa3c-296b-4cfe-8bd2-25e1797f152c" width="700" />
[!tip] Checkout our docs for more details, and it's still in early stage but we hope you can try it out and provide us with some bugs and feedback at https://github.com/web-infra-dev/rspack/issues/8106.
Faster
output.hashFunctionRspack's output.hashFunction now defaults to the faster
xxhash64, and the output.hashDigestLength now defaults to16(prev20).In the very large projects, this change will bring a significant performance improvement:
hyperfine --warmup 1 --runs 3 'HASH_FUNCTION=md4 node --run build:rspack' 'HASH_FUNCTION=xxhash64 node --run build:rspack' Benchmark 1: HASH_FUNCTION=md4 node --run build:rspack Time (mean ยฑ ฯ): 11.428 s ยฑ 0.758 s [User: 83.504 s, System: 5.808 s] Range (min โฆ max): 10.892 s โฆ 12.295 s 3 runs Benchmark 2: HASH_FUNCTION=xxhash64 node --run build:rspack Time (mean ยฑ ฯ): 9.697 s ยฑ 0.318 s [User: 79.664 s, System: 6.127 s] Range (min โฆ max): 9.374 s โฆ 10.009 s 3 runs Summary HASH_FUNCTION=xxhash64 node --run build:rspack ran 1.18 ยฑ 0.09 times faster than HASH_FUNCTION=md4 node --run build:rspackRelated PR: https://github.com/web-infra-dev/rspack/pull/8249
What's Changed
Performance Improvements โก
- perf: incremental build chunk graph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7721
- perf: enable
xxhash64hash function by default by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8249 - perf: enable SWC
disableAllLintsby default to reduce overhead by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8275 - perf(core): replace
neo-asyncwith a minimal helper by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8282
Exciting New Features ๐
- feat: add setters for errors and warnings in Compilation by @inottn in https://github.com/web-infra-dev/rspack/pull/8115
- feat(CLI): make
@rspack/clidual package and bundle with Rslib by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8187 - feat: add rspack_cacheable lib by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8156
- feat: keep SWC types up to date by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8215
- feat: support wrappedContextRegExp by @inottn in https://github.com/web-infra-dev/rspack/pull/8149
- feat: introduce RemoveDuplicateModulesPlugin by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8128
- feat(html): support function filename and
[name]in filename by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7753 - feat: module.modules by @SyMind in https://github.com/web-infra-dev/rspack/pull/8192
- feat: support
output.compareBeforeEmitby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8245 - feat(incremental): free space for revoked modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8250
- feat(core): bump swc to 3.0.1 by @hardfist in https://github.com/web-infra-dev/rspack/pull/8264
- feat: add read API to output file system by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8274
Bug Fixes ๐
- fix: temporarily use
lightingcss_rsto fix CSS property order by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8182 - fix(deps): upgrade rspack_resolver 0.3.5 to fix extensionAlias edge cases by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8188
- fix: should correct cacheGroups test regex by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8204
- fix(type):
rspackfunction type in cjs require by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8169 - fix(modern-module): concatenate entry module regardless bail reasons by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8165
- fix(ci): trigger
pkg-previewwhen the needs are skipped by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8216 - fix: incremental provided exports should rebuild clean exports info by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8221
- fix: module_executor support layer by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8212
- fix: expose incremental.buildChunkGraph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8240
- fix: compile time evaluation of require.ensure by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8242
- fix(cli): display the error which is thrown by the plugin during the starting of
rspack serveby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8244 - fix: preserve star export from external module by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8217
- fix: sourceMapFilename is relative by @SyMind in https://github.com/web-infra-dev/rspack/pull/8269
- fix(type): Make iterators compatible with TS 5.6
--target ESNextby @andersk in https://github.com/web-infra-dev/rspack/pull/8279
Document Updates ๐
- docs: update ContextModuleFactory hook by @9aoy in https://github.com/web-infra-dev/rspack/pull/8178
- docs: correct ES modules and some other spellings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8191
- docs: add tips and examples for experiments configs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8189
- docs: use ApiMeta specific label instead of Webpack specific chapter by @9aoy in https://github.com/web-infra-dev/rspack/pull/8186
- docs: update links in README by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8203
- docs: add layer examples and correct types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8202
- docs: fix link is 404 in Guide by @nobuaki0331 in https://github.com/web-infra-dev/rspack/pull/8223
- docs: correct the format of defaultValue by @inottn in https://github.com/web-infra-dev/rspack/pull/8222
- docs: should enable swc
keepImportAttributesconfiguration when useRule.withby @9aoy in https://github.com/web-infra-dev/rspack/pull/8239 - docs: addedVersion should link to release tag by @9aoy in https://github.com/web-infra-dev/rspack/pull/8241
- docs: update Rspack roadmap by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8246
- docs: add license to website footer by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8261
- docs(swc-loader): add example for syntax lowering and polyfill by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8265
Other Changes
- refactor: add JSDoc to improve config.experiments types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8184
- test: rename harmony to ESM by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8183
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/6596
- chore(deps): update dependency exit-hook to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8193
- chore(deps): update pnpm to v9.12.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8199
- refactor: collect rebuild modules mutations in make by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8196
- refactor: add JSDoc to improve config.wath types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8201
- test: add
rspack.defaultshould not exist test by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8207 - chore(typo): rename
lightningCssMiminizerPlugin.tsfile by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8214 - refactor: add JSDoc to improve config.devServer type by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8213
- refactor: add JSDoc to improve config.ignoreWarnings, profile, bail types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8230
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/8200
- refactor: add JSDoc to improve config.performance by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8231
- refactor: add JSDoc to improve rspack config types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8233
- ci: allow to use self-host runner when preview package by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8236
- ci: allow to get label from self host runner by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8237
- chore: add Debug trait for FileSystem and Make Task by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8252
- ci: allow aarch64 gnu compile on github runner in pkg preview by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8253
- test: remove copy plugin build folder by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8251
- ci: create prerelease pull request by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8263
- ci: fix pretag default value by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8266
- chore(deps): update pnpm to v9.12.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8256
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8255
- chore: remove arco-pro diff test case by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8270
- chore(ci): change repo owner of rspack-ecosystem-ci by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8272
- chore(ci): fix the syntax error by @inottn in https://github.com/web-infra-dev/rspack/pull/8278
- refactor: module.size fn should a option compilation by @SyMind in https://github.com/web-infra-dev/rspack/pull/8281
- test: keep test case stable with different version length by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8287
New Contributors
- @nobuaki0331 made their first contribution in https://github.com/web-infra-dev/rspack/pull/8223
- @andersk made their first contribution in https://github.com/web-infra-dev/rspack/pull/8279
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.14...v1.1.0-beta.0
- 1.0.1422 Oct 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.14 -->
What's Changed
Performance Improvements โก
- perf: cache swc loader by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7965
Exciting New Features ๐
- feat: incremental for collecting dependencies diagnostics by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8127
- feat: rename harmony in comments to ESM by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8162
- feat: support
require.ensureby @CPunisher in https://github.com/web-infra-dev/rspack/pull/7972 - feat(types): export
ResolveDatatype by @9aoy in https://github.com/web-infra-dev/rspack/pull/8177
Bug Fixes ๐
- fix: perf degradation in devtool plugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/8147
- fix: compatible static methods with html-webpack-plugin 5.6.0 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8157
- fix: generate correct worker expression with trusted types by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8143
- fix: use content hash as [base] and [name] for extracted DataURIs by @inottn in https://github.com/web-infra-dev/rspack/pull/8148
- fix: should keep comments of esm export by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8168
- fix: escape node.__dirname by @inottn in https://github.com/web-infra-dev/rspack/pull/8172
Document Updates ๐
- docs: disable doc blog sidebar by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8155
- docs: add
html-rspack-tags-pluginas an alternative by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8158 - docs: add Kuaishou logo to who is using by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8160
- docs: rename shareScope to shareStrategy by @86XIng in https://github.com/web-infra-dev/rspack/pull/8173
Other Changes
- chore(deps): update typescript to v5.6 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8145
- test: add global snapshot serializer by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8137
- chore(docs): rsdoctor add the note for CssExtractRspackPlugin by @easy1090 in https://github.com/web-infra-dev/rspack/pull/8087
- refactor: mutations read write permission from incremental options by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8159
- refactor: add JSDoc to improve config.target, devtool, node, cache types. by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8152
- refactor: rename harmony in Rust code to ESM by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8166
- refactor: add JSDoc to improve config.stats types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8174
- refactor: incremental options name by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8175
New Contributors
- @86XIng made their first contribution in https://github.com/web-infra-dev/rspack/pull/8173
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.13...v1.0.14
- 1.0.1316 Oct 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.13 -->
What's Changed
Bug Fixes ๐
- fix: rspack source for stream_chunks_of_source_map_full by @SyMind in https://github.com/web-infra-dev/rspack/pull/8138
Document Updates ๐
- docs: update
webpack-assets-manifestcompatibility status by @9aoy in https://github.com/web-infra-dev/rspack/pull/8144
Other Changes
- refactor: add JSDoc for configuration.module by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8142
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.8 by @renovate in https://github.com/web-infra-dev/rspack/pull/8131
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.12...v1.0.13
- 1.0.1216 Oct 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.12 -->
What's Changed
Exciting New Features ๐
- feat(cli): add exports field by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8119
- feat(rspack_core): use simple string parsing instead of regex by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8113
Bug Fixes ๐
- fix: side effects optimize for dynamic reexports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8125
- fix(json): only add RuntimeGlobals::MODULE for concatenation by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8126
- fix: should not panic when passing
testoption to SourceMapDevToolPlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8136 - fix(core): should external package.json from bundle by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8140
Other Changes
- chore(workflow): merge website folder to the root pnpm workspace by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8114
- chore: upgrade rust to 1.81.0 nightly by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8111
- chore(create-rspack): bump Rslib 0.0.12 and adjust dirname by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8124
- test: not to display obsoleted snapshots when test with
-tby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8122 - chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/8133
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.11...v1.0.12
- 1.0.1115 Oct 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.11 -->
Highlights ๐ก
Faster Startup ๐
The Node.js code from
@rspack/coreis now bundled into a single bundle, making Rspack startup 30ms faster.Benchmark 1 (Rspack 1.0.10) Time (mean ยฑ ฯ): 370.5 ms ยฑ 12.1 ms [User: 412.9 ms, System: 68.1 ms] Range (min โฆ max): 357.9 ms โฆ 395.1 ms 10 runs Benchmark 2 (Rspack 1.0.11) Time (mean ยฑ ฯ): 335.4 ms ยฑ 2.6 ms [User: 380.3 ms, System: 59.0 ms] Range (min โฆ max): 331.8 ms โฆ 339.1 ms 10 runsWhat's Changed
Performance Improvements โก
- perf: bundle
@rspack/corefor faster startup by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8072 - perf(rspack_core): replace
HASH_PLACEHOLDER_REGEXwith simple string parsing by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7907 - perf: add cache for getting sideEffectState by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8070
Exciting New Features ๐
- feat(core): bump swc to 1.0.0 by @hardfist in https://github.com/web-infra-dev/rspack/pull/8104
- feat(rspack_plugin_copy): Set source_filename and copied flag when copying an asset by @ramon-villain in https://github.com/web-infra-dev/rspack/pull/8077
Bug Fixes ๐
- fix: avoid renaming the export name when outputting a library by @inottn in https://github.com/web-infra-dev/rspack/pull/8046
- fix(ci/preview-commit): remove predicate-quantifier by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8091
- fix: return url in CreateScriptUrlRuntimeModule by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8088
- fix: css module should not calculate id by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8084
- fix: avoid extra runtime for get javascript chunk filename by @inottn in https://github.com/web-infra-dev/rspack/pull/8099
- fix: generate code correctly for dynamically importing the same file by @inottn in https://github.com/web-infra-dev/rspack/pull/8100
Other Changes
- test: disable unstable test case of rspack-cli by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8086
- chore: polish CSS HMR logs and correct the case by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8083
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/7976
- refactor: remove connection id by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8089
- test(plugin-test): support for reference Rspack source modules by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8105
- refactor: add JSDoc & types to improve Rspack configuration.output types. by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8107
- chore(website/deps): bump Rspress 1.33.1 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8112
New Contributors
- @ramon-villain made their first contribution in https://github.com/web-infra-dev/rspack/pull/8077
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.10...v1.0.11
- perf: bundle
- 1.0.1011 Oct 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.10 -->
What's Changed
Highlights
The
swc_corecrate has been upgraded from version0.106.1to0.109.1. Fixed the source map error in SWC minifier when used with Sentry.For a detailed comparison between swc versions, see the https://github.com/swc-project/swc/compare/[email protected][email protected].
Exciting New Features ๐
- feat: support dependencies in resolve hook callback by @SyMind in https://github.com/web-infra-dev/rspack/pull/7949
- feat(rspack_plugin_schemas): http import schema plugin by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/7008
Bug Fixes ๐
- fix: the value of this.sourceMap in LoaderContext is incorrect when using SourceMapDevToolPlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/7968
- fix: source map is not works with Sentry by @SyMind in https://github.com/web-infra-dev/rspack/pull/8080
- fix: should support
chunk.contentHashin PathData ofcompilation.getPathby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8074 - fix: allow file names and directory names to contain brackets by @inottn in https://github.com/web-infra-dev/rspack/pull/8069
Other Changes
- refactor: add JSDoc to improve Rspack configuration.optimization types. by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8081
- chore(deps): update pnpm to v9.12.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8065
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.9...v1.0.10
- 1.0.910 Oct 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.9 -->
What's Changed
Exciting New Features ๐
- feat(parser): add new javascript parser options by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7939
Bug Fixes ๐
- fix(externals): distinguish "module" and "import" in "module-import" by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7999
- fix: should set code generation hash to concatenated module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8062
- fix: should use chunk in path data of
compilation.getPathby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8032 - fix(type): be compitable to ts5.6 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8071
Document Updates ๐
- docs: upgrade breaking change description by @hardfist in https://github.com/web-infra-dev/rspack/pull/8012
- docs(progress-plugin): support custom handler by @9aoy in https://github.com/web-infra-dev/rspack/pull/8014
Other Changes
- chore: drop npm-run-all, make command npm client agnostic by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8005
- chore: update teams.yml by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8020
- chore(ci): support pkg.pr.new by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7757
- chore(deps): update dependency style-loader to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8025
- chore(ci): skip preview if no relevant code changes by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8023
- refactor: add JSDoc & types to improve configuration.resolve types. by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8029
- test: try to fix the randomly failed of @rspack/cli test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8030
- refactor: add JSDoc to improve configuration.externals types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8013
- chore(deps): update crate-ci/typos action to v1.25.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8036
- chore(deps): update dependency coffee-loader to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8047
- chore(website): remove unused dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/8048
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.7 by @renovate in https://github.com/web-infra-dev/rspack/pull/8052
- chore(deps): update dependency jsdom to v25 by @renovate in https://github.com/web-infra-dev/rspack/pull/8053
- chore(deps): update pnpm to v9.12.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8054
- refactor: add JSDoc to improve Rspack configuration.entry|context|mode types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8016
- chore(deps): update playwright to 1.47.0 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8063
- chore(deps): update crate-ci/typos action to v1.26.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8066
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.8...v1.0.9
- 1.0.829 Sept 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.8 -->
What's Changed
Highlights
- the Rust crate
swc_corehas been upgraded to 0.106.0 and swc minifier source map error has been fixed by @SyMind in https://github.com/web-infra-dev/rspack/pull/7991
Performance Improvements โก
- perf: lazy create hash utils by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7961
Exciting New Features ๐
- feat: support
compilation.builtModulesby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7984
Bug Fixes ๐
- fix: the progress values for the make and sealing statuses are inaccurate by @inottn in https://github.com/web-infra-dev/rspack/pull/7990
- fix: correctly display the progress bar when it reaches 100% by @inottn in https://github.com/web-infra-dev/rspack/pull/7989
- fix: use
HookMapforruntimeRequirementInTreeby @colinaaa in https://github.com/web-infra-dev/rspack/pull/7987 - fix: swc minifier source map by @SyMind in https://github.com/web-infra-dev/rspack/pull/7991
- fix: generate params of runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8000
- fix(modern-module): use module style export for non entry module by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7996
- fix: dedup asset_contents to avoid multiple hash changes by @inottn in https://github.com/web-infra-dev/rspack/pull/8002
- fix(core): allow non-utf8 string in source code by @hardfist in https://github.com/web-infra-dev/rspack/pull/8009
Document Updates ๐
- docs: update team members, add @shulaoda by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7998
Other Changes
- refactor(core): add task name for tokio-console better display by @hardfist in https://github.com/web-infra-dev/rspack/pull/7966
- refactor(core): use separate tokio_console layer by @hardfist in https://github.com/web-infra-dev/rspack/pull/7982
- chore(deps): update dependency @swc/plugin-remove-console to v3 by @renovate in https://github.com/web-infra-dev/rspack/pull/7978
- chore(deps): update pnpm to v9.11.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/7977
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/7973
- chore: fix proxied typo by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7983
- refactor: import module hooks by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7967
- revert: refactor(core) add task name for tokio-console better display by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7997
- refactor: add JSDoc to improve BannerPlugin options types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8003
- refactor: add JSDoc & types to improve HtmlRspackPlugin, IgnorePlugin options types by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8004
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.7...v1.0.8
- the Rust crate
- 1.0.724 Sept 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.7 -->
What's Changed
Performance Improvements โก
- perf: lazy require
browserslistpackage by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7963
Bug Fixes ๐
- fix(core): ping @rspack/dev-server to 1.0.5 by @hardfist in https://github.com/web-infra-dev/rspack/pull/7969
- fix(create-rspack): missing vanilla-ts tsconfig.json by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7970
Document Updates ๐
- docs: addRuntimeModule and runtimeRequirementInTree by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7938
Other Changes
- refactor: phases level switcher for incremental options by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7954
- refactor: remove mut options in plugin apply by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7958
- chore: migrate @rspack/dev-server to an independent repo by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7959
- chore: not allow run typecheck when run node bin/rspack for other project by @hardfist in https://github.com/web-infra-dev/rspack/pull/7964
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.6...v1.0.7
- perf: lazy require
- 1.0.624 Sept 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.6 -->
What's Changed
[!CAUTION] This version has a bug which requires install webpack together to work, use v1.0.7 instead
Highlights
Support ContextReplacementPlugin
For more information, please refer to the documentation ContextReplacementPlugin.
Performance Improvements โก
- perf(rspack): use
cow-utilsinstead by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7908
Exciting New Features ๐
- feat(rspack_plugin_javascript): improve provide dependency by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7871
- feat(progress-plugin): support custom handler by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7896
- feat: allow ModuleFactoryCreateData modify dependencies by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7895
- feat: support
compilation.hooks.runtimeRequirementInTreeby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7917 - feat: support experimental loader
emitDiagnosticby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7879 - feat: support
compilation.addRuntimeModuleby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7925 - feat: context repl plugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/7853
- feat(core): integrate rspack_resolver with input_filesystem by @hardfist in https://github.com/web-infra-dev/rspack/pull/7858
- feat(core): support using tokio-console by @hardfist in https://github.com/web-infra-dev/rspack/pull/7945
Bug Fixes ๐
- fix(rspack-test-tools): corret script
testuby @shulaoda in https://github.com/web-infra-dev/rspack/pull/7894 - fix: should run watch cases test in build assets by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7897
- fix(core): use resource shouldn't contain query by @hardfist in https://github.com/web-infra-dev/rspack/pull/7911
- fix: preserve variable names declared with
varby @inottn in https://github.com/web-infra-dev/rspack/pull/7903 - fix: use SourceMapSource in js side to support map method by @SyMind in https://github.com/web-infra-dev/rspack/pull/7828
- fix: avoid import external module re-assigin in concatenation by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7839
- fix: make stage has_module_graph_change calculate incorrectly by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7920
- fix(core): align assetInfo with webpack by @hardfist in https://github.com/web-infra-dev/rspack/pull/7924
- fix: should create an empty codegen result for module that has failure in codegen by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7777
- fix: eco-ci prebundled enhanced-resolve by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7933
- fix: attach when add runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7935
- fix: infer async modules when incremental enabled by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7927
- fix: change javascript parser options to properly merge by @inottn in https://github.com/web-infra-dev/rspack/pull/7946
Document Updates ๐
- docs(landingpage): update @rstack-dev/doc-ui to 1.5.1 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7899
- docs: update node version and webpack-dev-server@5 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7900
- docs: update how to use swc plugin in rspack rule by @zhangmingyuan666 in https://github.com/web-infra-dev/rspack/pull/7904
- docs: add Trellis logo at who is using rspack by @yharaskrik in https://github.com/web-infra-dev/rspack/pull/7901
- docs(landingpage): update @rstack-dev/doc-ui by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7909
- docs: update who is using by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7948
- docs: fix link is 404 in README by @lzxb in https://github.com/web-infra-dev/rspack/pull/7947
- docs: add use case for
extensionAliasby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7951 - docs(website): update blog credit by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/7931
- docs: webpack-merge also applies to rspack by @wjw99830 in https://github.com/web-infra-dev/rspack/pull/7953
Other Changes
- refactor(types): remove @ts-expect-error in loaderRunner and StatsFactory by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7864
- refactor: clean dev server code by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7794
- chore(rspack): remove unnecessary files by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7910
- chore(deps): bump mio from 0.8.8 to 0.8.11 by @dependabot in https://github.com/web-infra-dev/rspack/pull/7928
- test: disable dev server e2e test by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7929
- chore(infra/biome): enable no-errors-on-unmatched by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7932
- refactor: use
realDependencyLocationinstead ofrangein dependency by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7892 - chore(workflow): remove rangeStrategy from renovate config by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7950
- test: fix css concat stats test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7955
New Contributors
- @zhangmingyuan666 made their first contribution in https://github.com/web-infra-dev/rspack/pull/7904
- @yharaskrik made their first contribution in https://github.com/web-infra-dev/rspack/pull/7901
- @lzxb made their first contribution in https://github.com/web-infra-dev/rspack/pull/7947
- @wjw99830 made their first contribution in https://github.com/web-infra-dev/rspack/pull/7953
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.5...v1.0.6
- perf(rspack): use
- 1.0.513 Sept 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.5 -->
What's Changed
Bug Fixes ๐
- fix(external_module): use "const" if supported when concatenation by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7836
- fix(create-rspack): eslint-plugin-react-hooks version conflict by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7854
- fix: remove LightningCssMinimizerRspackPlugin exclude option default value by @noshower in https://github.com/web-infra-dev/rspack/pull/7811
- fix: trusted type with devtool eval by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7866
- fix: do not use affected for side-effects-flag-plugin by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7865
- fix: should forward sourcemaps for refresh loaders by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7872
- fix: should provide full error message with error name when
hideStackis set totrueby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7867
Document Updates ๐
- docs: add NIO logo at built with rspack by @littleVege in https://github.com/web-infra-dev/rspack/pull/7856
- docs: add clarification to loader
this.callbackusage by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7855 - docs: remove disableTransformByDefault by @9aoy in https://github.com/web-infra-dev/rspack/pull/7863
- docs: add
sourcesJavaScript API by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7876 - docs: update slogan for who is using by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7881
- docs: add ABB logo at built with rspack by @VugarAhmadov in https://github.com/web-infra-dev/rspack/pull/7880
- docs: add sequoia logo at who is using by @ibuli in https://github.com/web-infra-dev/rspack/pull/7882
- docs: add getaround logo at who is using by @CPatchane in https://github.com/web-infra-dev/rspack/pull/7883
Other Changes
- ci: remove firefox by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7857
- refactor(types): remove @ts-expect-error in Compiler and MultiCompiler by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7824
- test(dev-server): enable dev server test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7861
- test(dev-sever): add e2e test cases part 2 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7829
- test(dev-sever): add e2e test cases part 3 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7833
- chore: remove "rust-analyzer.checkOnSave" of VS Code by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7874
- test: disable unstable dev server snapshot case by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7877
- refactor: css-extract using parseMeta to store css info by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7878
New Contributors
- @littleVege made their first contribution in https://github.com/web-infra-dev/rspack/pull/7856
- @VugarAhmadov made their first contribution in https://github.com/web-infra-dev/rspack/pull/7880
- @ibuli made their first contribution in https://github.com/web-infra-dev/rspack/pull/7882
- @CPatchane made their first contribution in https://github.com/web-infra-dev/rspack/pull/7883
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.4...v1.0.5
- 1.0.410 Sept 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.4 -->
What's Changed
Exciting New Features ๐
- feat(modern-module): make dynamic import runtime-less by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7759
- feat(core): use dyn output_filesystem by @hardfist in https://github.com/web-infra-dev/rspack/pull/7817
- feat: remove
ErrorSpanin dependency trait by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7841 - feat: support context for resolve and resolveWeak by @inottn in https://github.com/web-infra-dev/rspack/pull/7832
- feat: make namedChunkGroups iterable by @inottn in https://github.com/web-infra-dev/rspack/pull/7840
Bug Fixes ๐
- fix(core): try fix EBUSY problem in windows ci by @hardfist in https://github.com/web-infra-dev/rspack/pull/7803
- fix(core): fix resolve faild when do recursive symbol link by @hardfist in https://github.com/web-infra-dev/rspack/pull/7744
- fix: overflow panic when shifting left value greater then 31 by @SyMind in https://github.com/web-infra-dev/rspack/pull/7792
- fix: remove HotUpdateChunk in chunks by @SyMind in https://github.com/web-infra-dev/rspack/pull/7810
- fix: should not transform source to buffer by @SyMind in https://github.com/web-infra-dev/rspack/pull/7821
- fix: change javascript parser options in child compiler by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7812
- fix(loader-runner): remove legacy Node compatible code by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7818
- fix: improve stats string for match resource with long data url by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7823
- fix: duplicate emit source map from child compiler by @SyMind in https://github.com/web-infra-dev/rspack/pull/7847
- fix: loader intermediate data should be overridden between loaders by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7846
Document Updates ๐
- docs: add tip for import.meta.webpackContext literal by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7815
- docs: fix typo in zh docs by @SyMind in https://github.com/web-infra-dev/rspack/pull/7820
Other Changes
- ci: clean node_modules and target by @SyMind in https://github.com/web-infra-dev/rspack/pull/7299
- chore(workflow): correct rspack action scope by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7825
- test: ignore snapshot obsolete warnings while using
-tby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7835 - chore(infra): remove eslint configs by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7842
- test(dev-sever): add e2e test cases part 1 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7809
- chore(infra/biome): enable
noImplicitAnyLetandnoArrayIndexKeyrules by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7843 - ci: disable dev server test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7851
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.3...v1.0.4
- 1.0.34 Sept 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.3 -->
What's Changed
Performance Improvements โก
- perf(buildChunkGraph): avoid unneeded visit by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7774
Exciting New Features ๐
- feat: support
compilation.chunkGroups[].originsby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7776
Bug Fixes ๐
- fix(make): isolated module clean incomplete by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7761
- fix: cheap source map by @SyMind in https://github.com/web-infra-dev/rspack/pull/7791
- fix: panic when identity mapping with different char indices by @SyMind in https://github.com/web-infra-dev/rspack/pull/7799
Document Updates ๐
- docs: fix migrate-from-builtins.css example codes by @noshower in https://github.com/web-infra-dev/rspack/pull/7775
- docs: update html plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7793
Other Changes
- chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows by @dependabot in https://github.com/web-infra-dev/rspack/pull/7783
- chore: cleanup unused module syntax by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7790
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.2...v1.0.3
- 1.0.24 Sept 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.2 -->
What's Changed
Performance Improvements โก
- perf: source map dev tool plugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/7739
- perf: use itoa for integer to string conversion by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7762
Bug Fixes ๐
- fix: escape css ident by @inottn in https://github.com/web-infra-dev/rspack/pull/7743
- fix: handle ASI for export declaration by @inottn in https://github.com/web-infra-dev/rspack/pull/7767
- fix(dev-server): pin webpack-dev-server version by @hardfist in https://github.com/web-infra-dev/rspack/pull/7784
Document Updates ๐
- docs(deps): upgrade @rstack-dev/doc-ui 1.4.2 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7771
- docs: Update asset-module.mdx by @renzp94 in https://github.com/web-infra-dev/rspack/pull/7770
Other Changes
- ci: test case have node_modules wrong by @SyMind in https://github.com/web-infra-dev/rspack/pull/7772
New Contributors
- @renzp94 made their first contribution in https://github.com/web-infra-dev/rspack/pull/7770
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.1...v1.0.2
- 1.0.13 Sept 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.1 -->
๐ก Highlights
Improved
create-rspackSupport for the addition of Biome / ESLint / Prettier when creating a new Rspack project:
Improve error logs of serde deserialize error
-
before:
-
after:
What's Changed
Performance Improvements โก
- perf: source map by @SyMind in https://github.com/web-infra-dev/rspack/pull/7647
Exciting New Features ๐
- feat(html): improve template parameters by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7686
- feat(html): support js template without child compiler by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7704
- feat(rspack-cli): support more flags for command serve by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7710
- feat(create-rspack): support for linter, formatter and CLI flags by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7735
- feat(html): support hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7729
Bug Fixes ๐
- fix: use topological order when SideEffectsFlagPlugin optimize incoming connections by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7717
- fix(core): improve error report when load builtin:swc-loader and buitin:lightningcss-loader by @hardfist in https://github.com/web-infra-dev/rspack/pull/7700
- fix: align ignored module debug comment with webpack by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7736
- fix: template react logo animation css selector by @velusgautam in https://github.com/web-infra-dev/rspack/pull/7741
- fix: add
in_function_scopefor getters and setters by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7745
Document Updates ๐
- docs: Announcing Rspack 1.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7682
- docs: fix FAQ in the 1.0 announcement by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7712
- docs: fix type of
devServer.hotby @shulaoda in https://github.com/web-infra-dev/rspack/pull/7711 - docs: change Dominus Kelvin to Kelvin Omereshone by @DominusKelvin in https://github.com/web-infra-dev/rspack/pull/7714
- docs: remove outdated content from announcing-1-0.mdx by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7716
- docs(landingpage): extract comps to @rstack-dev/doc-ui by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7726
- docs: correct asset generator filename property type by @nanianlisao in https://github.com/web-infra-dev/rspack/pull/7755
- docs: disable bundler info injection by set
force: falseby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7756
Other Changes
- refactor: improve HarmonyAcceptDependency by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7671
- refactor: remove ErrorSpan in dependencies by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7674
- test(rspack-cli): enable rspack cli command serve basic test case by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7724
- chore: add SECURITY.md by @hardfist in https://github.com/web-infra-dev/rspack/pull/7733
- test(infra): improve e2e test stability by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7713
- chore: change security report email by @hardfist in https://github.com/web-infra-dev/rspack/pull/7760
- test: webpack test hot cases for new incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7738
- chore(deps): upgrade @rstack-dev/doc-ui 1.4.0 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7765
New Contributors
- @DominusKelvin made their first contribution in https://github.com/web-infra-dev/rspack/pull/7714
- @velusgautam made their first contribution in https://github.com/web-infra-dev/rspack/pull/7741
- @nanianlisao made their first contribution in https://github.com/web-infra-dev/rspack/pull/7755
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0...v1.0.1
-
- 1.0.028 Aug 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0 -->
See Announcing Rspack 1.0 for more details ๐
What's Changed
Breaking Changes ๐
- fix: compilation errors and warnings should be
RspackErrorby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6900 - feat: deprecate JavaScript API by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6859
- feat: upgrade swc to latest version by @hardfist in https://github.com/web-infra-dev/rspack/pull/6887
- refactor: remove profile integration timestamp by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6947
- feat: remove fields of
SwcJsMinimizerRspackPluginOptionsby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6950 - fix!: align optimization.moduleIds and optimization.chunkIds when mode=none by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6956
- feat!: remove output.amdContainer from config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6958
- feat!: revert default values of SwcJsMinimizer by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6970
- fix!: set default value of concatenateModules to true in production mode by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/6959
- refactor!: use swc_plugin_prefresh instead of builtin swc plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7069
- feat!: detect conflicting values in
DefinePluginby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7045 - feat!: remove
builtins.provideby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7086 - feat!: use native resolver in loader by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4945
- fix!: correct names of hash fields in asset.info by @xc2 in https://github.com/web-infra-dev/rspack/pull/7220
- feat(deps)!: update
webpack-dev-serverto v5 and no longer lock the versions by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7130 - fix!: remove @rspack/plugin-minify by @hardfist in https://github.com/web-infra-dev/rspack/pull/7307
- feat!(crates): upgrade swc_core to 0.99.5 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7292
- feat!: improve HtmlRspackPlugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7577
- refactor!: disable css minify in html minify and remove SwcCssMinimizerRspackPlugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7547
- feat!: support
optimization.emitOnErrorsby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7595 - feat(core)!: change dojang default escape|unescape to lodash.template syntax by @hardfist in https://github.com/web-infra-dev/rspack/pull/7661
Performance Improvements โก
- perf(rspack_plugin_javascript): use Rayon to parse modules parallelly by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6864
- perf: make picking concatenable modules parallel by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7003
- perf: cache
compilation.entrypointsby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7059 - perf: enable "fat" LTO for production release by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7088
- perf: remove unneeded string clone by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7104
- perf: reduce
get_schemeallocation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7109 - perf: reduce alloc for bailout reason by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7118
- perf: stats rust side generate speed by @SyMind in https://github.com/web-infra-dev/rspack/pull/7126
- perf: reduce allocation for filename render by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7138
- perf: optimize JS communication with lazy getters by @SyMind in https://github.com/web-infra-dev/rspack/pull/7163
- perf: reduce allocation for
TraceableErrorby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7192 - perf: reduce allocation for
Statsby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7124 - perf: reduce allocation for parsing by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7219
- perf: use Set as Queue to solve the duplication by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7233
- perf: reduce allocation for
ModuleRulematching by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7249 - perf: reduce large pre-allocations for
JavascriptParser::newby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7286 - perf: faster hasher for
Ukeys by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7287 - perf: a bunch of small improvement for ConcatenatedModule by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7257
- perf: reduce allocation for adding dependencies by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7301
- perf: no need to require entire enhanced-resolve by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7343
- perf(allocator): use mimalloc v2 for all by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7361
- perf: stats to js speed by @SyMind in https://github.com/web-infra-dev/rspack/pull/7344
- perf: rule matcher allocates only if
resource_pathis not a valid UTF-8 sequence by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7441 - perf: bump lightningcss to remove duplicated browerslist-rs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7461
- perf!: use browserslist-rs for lightningcss by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7544
- perf: warn case sensitive plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7606
- perf: improve performance of eval-source-map by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7630
Exciting New Features ๐
- feat(napi): support js chunk hash hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6853
- feat(napi): compilation chunk hash hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6858
- feat: root module is less prone to be wrapped in IIFE by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6697
- feat: CopyRspackPlugin support function
tooption by @9aoy in https://github.com/web-infra-dev/rspack/pull/6866 - feat: remove styled-components, emotion and relay in builtin swc-loader by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6862
- feat: align split-chunks stats by @SyMind in https://github.com/web-infra-dev/rspack/pull/6847
- feat: generating provenance statements by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6896
- feat: add
factoryMetatoJsModuleand optimizeInnerGraphPluginfor variable decl with iife by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6888 - feat: simple custom worker syntax by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6899
- feat: add nwjs target to rspack config by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6880
- feat: add build unique id for detecting by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6865
- feat: encode filename in EvalDevToolModulePlugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/6903
- feat: add stats.module.dependent by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6913
- feat(cli): defineConfig support all types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6911
- feat: add nwjs external preset by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6907
- feat: custom worker syntax for worklet by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6916
- feat: support deep AST parsing in debug by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6919
- feat: add idHints and hash of stats.chunk by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6920
- feat: support nested webpack_exports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6930
- feat: fully support EvalSourceMapDevToolPlugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/6933
- feat: support use data uri with inline loaders by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6939
- feat(create-rspack): improve the templates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6940
- feat: add contextInfo on resolveData by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6948
- feat: align stats.assets[].info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6951
- feat: optimize filename function diagnostic by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6953
- feat(cli): add --profile to enable stats module profile by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6957
- feat: stats origin moduleid by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6955
- feat!: enable lightning css minimizer as default css minimizer by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6960
- feat: align stats chunk group by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6961
- feat: enable lightning css minimizer error recovery by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6995
- feat: support nmf resolve hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6998
- feat: support splitChunkSizes type by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6989
- feat: refresh overlay by @JiangWeixian in https://github.com/web-infra-dev/rspack/pull/6161
- feat: align webpack target and stats api by @SyMind in https://github.com/web-infra-dev/rspack/pull/7027
- feat: support fetch priority by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7029
- feat: support webpackInclude and webpackExclude by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7055
- feat(rspack_core): nmf resolve in schema hook by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/7039
- feat: tree shakable output for module library by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6877
- feat: downgrade container runtime to es2015 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7085
- feat: to function can return Promise by @SyMind in https://github.com/web-infra-dev/rspack/pull/7068
- feat: support more features of
DefinePluginby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7108 - feat: align part of StatsError by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7091
- feat(create-rspack): update template package name by @liangchaofei in https://github.com/web-infra-dev/rspack/pull/7092
- feat: reduce unnecessary exports runtime by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7102
- feat: support type field for JsModule by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7093
- feat(stats): support
StatsError.moduleTraceby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7123 - feat: add trace in hook macro by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7131
- feat: support
test,includeandexcludeoptions forSwcCssMinimizerRspackPluginby @simonxabris in https://github.com/web-infra-dev/rspack/pull/7111 - feat: override strict for javascript module by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7127
- feat(stats): align stats factory by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7165
- feat: align part of compile time binary evaluation with webpack by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7187
- feat: align StatsAsset with webpack by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7190
- feat: add support for function types to
output.assetModuleFilenameby @xc2 in https://github.com/web-infra-dev/rspack/pull/7191 - feat: support webpackExports in magic comments by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7198
- feat: support output.charset and output.chunkLoadTimeout by @xc2 in https://github.com/web-infra-dev/rspack/pull/7189
- feat: support
__webpack_get_script_filename__by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7203 - feat: support webpack_exports_info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7205
- feat: external callbacks receive contextInfo.issuer by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7210
- feat: support destructuring of import.meta by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7229
- feat: support tree shaking with awaiting dynamic import by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7230
- feat: align
publicPathoptions with webpack by @xc2 in https://github.com/web-infra-dev/rspack/pull/7216 - feat: support lightningcss-loader by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7214
- feat: support
compilation.chunkGroupsandcompilation.namedChunkGroupsby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7254 - feat(create-rspack): add vanilla templates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7295
- feat: support EntryPlugin filename function by @9aoy in https://github.com/web-infra-dev/rspack/pull/7297
- feat: support
test,includeandexcludeoptions forLightningCssMinimizerRspackPluginby @simonxabris in https://github.com/web-infra-dev/rspack/pull/7290 - feat: experiments layers by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7330
- feat: support import attributes by @hardfist in https://github.com/web-infra-dev/rspack/pull/7333
- feat(css-extract): avoid reloading all CSS when hot load by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7314
- feat(modern-module): force concaten single module by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7317
- feat: better diagnostic report for harmony dependency by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7337
- feat: support
parser.importMetaandoutput.importMetaNameby @xc2 in https://github.com/web-infra-dev/rspack/pull/7231 - feat: better diagnostic report for harmony residual dependencies by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7374
- feat: add memory cache of javascript plugins by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7389
- feat: add partial lazyOptions.backend options by @tatchi in https://github.com/web-infra-dev/rspack/pull/7273
- feat: support
compilation.chunkGroup[].isInitial()by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7406 - feat(diagnostic): improve diagnostics for swc wasm plugins by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7391
- feat: support compilation.entries by @SyMind in https://github.com/web-infra-dev/rspack/pull/7396
- feat: add
compiler.rspackby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7434 - feat: support seal hook in js side by @SyMind in https://github.com/web-infra-dev/rspack/pull/7428
- feat(dev-server): export package version by @leimonio in https://github.com/web-infra-dev/rspack/pull/7305
- feat(stats): support
moduleReason.resolvedModuleby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7467 - feat(diagnostic): prettier diagnostics of magic comments by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7472
- feat: support compilation.modules[i].blocks by @SyMind in https://github.com/web-infra-dev/rspack/pull/7460
- feat: port "module-import" external type by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7479
- feat(node-stuff): implement
node-moduleshim by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7465 - feat(stats): support
isOverSizeLimitin stats by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7483 - feat: splitChunks support usedExports by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7485
- feat: support
stats.chunkGroup[].childAssetsby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7517 - feat: support module.size function in cacheGroups.[i].test by @SyMind in https://github.com/web-infra-dev/rspack/pull/7482
- feat: expose added/removed compilation.*_dependencies to js side by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7522
- feat: second param for loader hook by @SyMind in https://github.com/web-infra-dev/rspack/pull/7537
- feat(create-rspack): configure Lightning CSS targets by default by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7579
- feat(core): don't inject bundlerInfo in library mode by @hardfist in https://github.com/web-infra-dev/rspack/pull/7567
- feat: extract-css-plugin supports layer by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7583
- feat(html): improve error handling by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7600
- feat: add cache for process runtime requirements by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7601
- feat(rspack_plugin_swc_js_minimizer): add minify option by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7599
- feat(core): bump rspack_resolver 0.2.0 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7532
- feat(deps): bump @module-federation/runtime-tools 0.5.1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7649
- feat(mf2): add shareStrategy by @2heal1 in https://github.com/web-infra-dev/rspack/pull/7651
- feat: add minify option to lightningcss-loader by @witsaint in https://github.com/web-infra-dev/rspack/pull/7653
- feat: cache unaffected for cgm code gen by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7646
- feat: apply affected modules to all cgm phase by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7684
- feat: apply affected modules for provide exports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7703
- feat: support
"loose-unrecognized-keys"for config validation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7705
Bug Fixes ๐
- fix: ci wrong in github runner by @SyMind in https://github.com/web-infra-dev/rspack/pull/6852
- fix: export default when environment supports const by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6861
- fix: pre walk class blocks by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6867
- fix: should not eval exports in harmony by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6883
- fix: clean up dependencies and types for emotion / relay by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6892
- fix: fix type of CssExtractRspackPluginOptions.{filename,chunkFilename} by @xc2 in https://github.com/web-infra-dev/rspack/pull/6882
- fix: missing bailout reason after introducing css extract plugin by @xc2 in https://github.com/web-infra-dev/rspack/pull/6875
- fix: sources in source map when use EvalSourceMapDevToolPlugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/6901
- fix: CopyRspackPlugin transform option type by @9aoy in https://github.com/web-infra-dev/rspack/pull/6908
- fix!: align devtool default value by @SyMind in https://github.com/web-infra-dev/rspack/pull/6904
- fix: devtool plugin cache conflict !macos by @SyMind in https://github.com/web-infra-dev/rspack/pull/6912
- fix: fix release build by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6921
- fix: use entrypoint.options.runtime as key for chunk_graph.runtime_ids map if possible by @escaton in https://github.com/web-infra-dev/rspack/pull/6928
- fix!: change default value of css to false, align with webpack by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/6910
- fix: context passed into the
ModuleFactoryis not correct by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6946 - fix!: align webpack defaults by @SyMind in https://github.com/web-infra-dev/rspack/pull/6949
- fix: sources types by @SyMind in https://github.com/web-infra-dev/rspack/pull/6944
- fix: should not using single line match in data url regex by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/6952
- fix: fix duplicated harmony exports with named exports and re-exports star by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6962
- fix(config): allow entry function to return promise by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6975
- fix: use max_entrypoint_size in add_entrypoints_over_size_limit_warning by @escaton in https://github.com/web-infra-dev/rspack/pull/6923
- fix: experiments css exports convention tree shaking by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6997
- fix: align source name conflict handling by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6993
- fix: should not generate pure expression if test is failed by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7014
- fix: use lite-tapable for enhanced-resolve by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7021
- fix: fix npm script in window by @daydayhappychao in https://github.com/web-infra-dev/rspack/pull/5164
- fix: pnpm install failed in ci by @SyMind in https://github.com/web-infra-dev/rspack/pull/7036
- fix: wrong cjs exports type caused unexpected exports presence by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7028
- fix: add warning for context module flag g and y by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7044
- fix: deduplicate extracted comments by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7040
- fix: detect magic comments around expr by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7047
- fix: truncateArgs is not a function by @SyMind in https://github.com/web-infra-dev/rspack/pull/7052
- fix(core): migrate to rspack_resolver by @hardfist in https://github.com/web-infra-dev/rspack/pull/7063
- fix: zod is pre-bundled twice by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7064
- fix: magic comment warning by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7056
- fix: revert detect statement level sequence expression by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7071
- fix: Add missing code for compatibility plugin by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7079
- fix: panic when get max target in find target by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7082
- fix: support css nonce by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7101
- fix(mf): runtime should respect output environment by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7113
- fix: should not shake used json fields by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7119
- fix: remove all unused local variables by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7134
- fix: unset cjs exports type on access exports directly by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7143
- fix: avoid type error when skipLibCheck is not enabled by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7155
- fix: align resolverFactory resolveOptions parameter with resolve options by @9aoy in https://github.com/web-infra-dev/rspack/pull/7154
- fix: invalid "javascript/auto" rule.type in getRawGeneratorOptions by @9aoy in https://github.com/web-infra-dev/rspack/pull/7164
- fix: should merge parser.javascript by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7152
- fix(cli): update peerDep of rspack-cli by @hardfist in https://github.com/web-infra-dev/rspack/pull/7173
- fix(release): alpha peerDependencies in @rspack/cli by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7175
- fix: resource within scheme context by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7166
- fix: eval condition expr range by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7184
- fix: pattern with wildcard and globstar can't match correctly when using
glob_matchby @shulaoda in https://github.com/web-infra-dev/rspack/pull/6668 - fix: update resource in nmf resolve hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7200
- fix: panic in hmr cause by auxiliary_assets by @SyMind in https://github.com/web-infra-dev/rspack/pull/7197
- fix: panic in ImportMetaContextDependency when resolve failed by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7215
- fix: get correct parent module for root module of concatenated module by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7212
- fix: collect auxiliary assets from module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7222
- fix: fix panic about runtime order by @xc2 in https://github.com/web-infra-dev/rspack/pull/7240
- fix: real content full hash replacement by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7271
- fix(fs): remove generic in
FileSystemtrait by @hardfist in https://github.com/web-infra-dev/rspack/pull/7275 - fix(panic): stable runtime key sequence by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7272
- fix: corrects result for
truthy || anyandfalsy && anyby @xc2 in https://github.com/web-infra-dev/rspack/pull/7277 - fix: Update index.mdx by @lalala-h in https://github.com/web-infra-dev/rspack/pull/7283
- fix: runtime condition optimization with concate module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7285
- fix: markdown format index.mdx by @lalala-h in https://github.com/web-infra-dev/rspack/pull/7310
- fix: add
awaitto async module export by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7308 - fix: lightningcss-loader targets array not work as expected by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7331
- fix(rspack_plugin_asset): repect user environment config when inlining svg by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7347
- fix: rspack errors don't support the correct location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7328
- fix: add runtime condition for harmony reexport checked by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7353
- fix: remove nonsensical intersection types by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7360
- fix: builtin:lightningcss-loader shuold keep loader query by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7363
- fix(modern-module): compat with more export cases by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7394
- fix: other git clean command wrong by @SyMind in https://github.com/web-infra-dev/rspack/pull/7404
- fix: render filename with dollar sign by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7402
- fix: stats perf degradation in hmr by @SyMind in https://github.com/web-infra-dev/rspack/pull/7407
- fix(mf2): extra provide sharing data by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7408
- fix: change some
walk_block_statementtowalk_statementby @CPunisher in https://github.com/web-infra-dev/rspack/pull/7410 - fix(rspack_loader_lightningcss): customMedia camelCase option by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7409
- fix: add custom browserslist target schema by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7421
- fix: provided exports for add entry modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7424
- fix(playground/cases): replace window.onmessage with self.onmessage in worker test case by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7431
- fix: remove unused JSON schemas for CSS extract plugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7442
- fix: update deny.toml by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7447
- fix: dynamic entry plugin desc to options by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7458
- fix: map of empty file should have mappings field by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7456
- fix: deep merge module resolve options by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7470
- fix: stats typescript wrong by @SyMind in https://github.com/web-infra-dev/rspack/pull/7466
- fix: type mismatch when using webpack plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7455
- fix: patch asset info in update asset by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7464
- fix!: reuseExistingChunk should be false by default by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7489
- fix(modern-module): export syntax detect more invalid chars by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7493
- fix: concatenation should merge moduleโs chunk init fragments by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7504
- fix(modern-module): correct use bailout reason by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7513
- fix: maxInitialRequests should exists in cache groups by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7512
- fix(hmr): replacement of optionalChain is compatible with legacy versions by @wChenonly in https://github.com/web-infra-dev/rspack/pull/7510
- fix: use intersection runtime for concat module code gen by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7523
- fix: chunk hash unstable by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7534
- fix: should insert semi after import, export, debugger and class field by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7529
- fix: check SuperProp in walk_call_expression by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7530
- fix: remove useless "module" external runtime by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7533
- fix(rust-core): no need to pass resolve_factory when using rust api by @hardfist in https://github.com/web-infra-dev/rspack/pull/7539
- fix(cli): wrong entry defaults from cli by @xc2 in https://github.com/web-infra-dev/rspack/pull/7541
- fix: source map plugin module should enable by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7545
- fix: avoid inner graph top level symbol for nested webpack_require by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7584
- fix(node-stuff): use more conventional shim method by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7587
- fix: missing
compiler.inputFileSystemtype by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7597 - fix: should not panic if provide dependency is not resolved by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7609
- fix: remove the unnecessary logic for inserting semicolons by @inottn in https://github.com/web-infra-dev/rspack/pull/7615
- fix: allow
nullandundefinedin EnvironmentPlugin by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7617 - fix: should not stringify loader loading requests by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7643
- fix(mf2): correct mf shared options by @2heal1 in https://github.com/web-infra-dev/rspack/pull/7640
- fix: unexpected ASI generation with sequence expression by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7650
- fix: wrong
builtin:swc-loadersource maps ifinputSourceMapis provided by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7654 - fix(html): emit error when param not found by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7656
- fix(mf2): initializeSharingInitTokens should be object by @2heal1 in https://github.com/web-infra-dev/rspack/pull/7657
- fix: "module-import" simply falls back to "module" when bails by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7585
- fix: should resolve aliased loader module with query by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7660
- fix:
Pathpitfall for loader type by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7666 - fix(security): DOM clobbering in auto public path by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7664
- fix: resolve issue with external array not working in UMD libraryTarget by @inottn in https://github.com/web-infra-dev/rspack/pull/7675
- fix(deps): bump webpack-dev-middleware v7.4.2 to fix assetsInfo by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7676
- fix(create-rspack): should not replace plugin-react-refresh version by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7677
- fix(cli): peerDep allows @rspack/[email protected] by @hardfist in https://github.com/web-infra-dev/rspack/pull/7680
- fix: reuse codegen results only for new incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7681
- fix: fallback to next main field when resolve failed by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7670
- fix:
contextshould be an absolute path by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7687 - fix(core): don't panic when load config failed by @hardfist in https://github.com/web-infra-dev/rspack/pull/7693
- fix(rspack-resolver): enable pnp feature by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7707
Document Updates ๐
- docs: fixed typo on compatibility list header by @ebektasiadis in https://github.com/web-infra-dev/rspack/pull/6886
- docs: fix rspack exports in javascript-api.mdx by @sudoaugustin in https://github.com/web-infra-dev/rspack/pull/6889
- docs: fix rspack exports in zh javascript-api.mdx by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6893
- docs: explain
VariableInfoby @bvanjoi in https://github.com/web-infra-dev/rspack/pull/6914 - docs: polish up guide docs by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6922
- docs: review devtool and entry config docs by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/6917
- docs: improve webpack migration by @SyMind in https://github.com/web-infra-dev/rspack/pull/6918
- docs: fix license badge and add node badge by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6929
- docs(config): temporary fix for mdx display bug by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6932
- docs: add stats data by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6937
- docs: describe stats data structure with ts types by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6941
- docs: polish up external config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6942
- docs(contributing): breaking change PR format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6969
- docs: update assets URLs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6972
- docs: upgrade latest discord invitation link by @SoonIter in https://github.com/web-infra-dev/rspack/pull/6977
- docs: use of nightly/canary version and install-rspack script by @SoonIter in https://github.com/web-infra-dev/rspack/pull/6974
- docs: announcing Rspack v1.0 alpha by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6945
- docs: remove invalid OG image by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6982
- docs: add doc about switch back to SwcCssMinimizerRspackPlugin by @hardfist in https://github.com/web-infra-dev/rspack/pull/6983
- docs: deduplicate plugin support status list by @xc2 in https://github.com/web-infra-dev/rspack/pull/6988
- docs: complete the module methods by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6999
- docs: module variables by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6980
- docs: add specifics for api meta by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7002
- docs: add Module Federation to features list by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7011
- docs: improve externals plugin doc by @SyMind in https://github.com/web-infra-dev/rspack/pull/7009
- docs: add prefetch&preload modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7010
- docs: default value in node config by @SyMind in https://github.com/web-infra-dev/rspack/pull/7015
- docs: update compilation hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7018
- docs: add fetch priority by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7037
- docs: add compare with parcel section by @hardfist in https://github.com/web-infra-dev/rspack/pull/7035
- docs: add baidu verify file for SEO optimization by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7073
- docs: fix netlify redirect cause baidu verify failed by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7074
- docs: update license ui by @9aoy in https://github.com/web-infra-dev/rspack/pull/7076
- docs: update teams page, add Rsfamily members by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7083
- docs: enable sitemap for SEO by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7105
- docs: polish migration wordings by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7117
- docs: use CssExtractRspackPlugin and experiments.css together by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7114
- docs: update benchmark data and improve UI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7159
- docs: update the quick start guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7162
- docs: polish up output config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7167
- docs: complete the target configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7168
- docs: reuse HomeLayout from Rspress by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7177
- docs(format): run prettier --write by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7180
- docs: add new features section to home page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7183
- docs: improve home page SSG and benchmark data by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7185
- docs: update stats data by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7195
- docs: add tool stack to homepage by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7221
- docs: add webpack_get_script_filename by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7236
- docs: complete processAssets document by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7274
- docs: fix build typo in the benchmark by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7300
- docs(devServer): update webpack-dev-server v5 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7319
- docs(blog): correcting the description of decorator configuration in v0.4 by @Mumujianguang in https://github.com/web-infra-dev/rspack/pull/7320
- docs: add compilation object by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7321
- docs: add
serwistin community compatibility table by @JoseVSeb in https://github.com/web-infra-dev/rspack/pull/7345 - docs: include types from common mdx chunks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7323
- docs: enable prettier for types in website by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/7350
- docs: import antd on demand by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/7351
- docs: bad symbol in compilation-hooks.mdx by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7352
- docs: improve CssExtractRspackPlugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7362
- docs: add Logger API by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7365
- docs: update compiler hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7366
- docs: remove outdated builtin config docs by @SyMind in https://github.com/web-infra-dev/rspack/pull/7372
- docs: add Rsdoctor documents by @easy1090 in https://github.com/web-infra-dev/rspack/pull/7322
- docs: add doc for html by @SyMind in https://github.com/web-infra-dev/rspack/pull/7373
- docs: grammar fix by @AkatQuas in https://github.com/web-infra-dev/rspack/pull/7414
- docs: group api docs by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7415
- docs: add compiler api by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7423
- docs: update ecosystem links by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7435
- docs: add MultiCompiler API by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7436
- docs: add Stats API by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7439
- docs: update dependencies and fix tsconfig paths by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7440
- docs: remove duplicated part in document of JavaScript API by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7443
- docs: bump
@rstack-dev/doc-uito add Rslib and awesome Rspack by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/7445 - docs: add guide for different CSS usages by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7446
- docs: remove perf note for mergeDuplicateChunks by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7459
- docs: explain usage of inner graph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7462
- docs: add detailed explanation for NormalModuleFactory hooks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7468
- docs: correct some statements of code splitting and splitChunks by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7469
- docs: update stats options by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7473
- docs: list plugin compatible +5 by @9aoy in https://github.com/web-infra-dev/rspack/pull/7481
- docs: add link for Rspack 0.x website by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7484
- docs: list compatibility status of more plugins by @9aoy in https://github.com/web-infra-dev/rspack/pull/7488
- docs: add some missing options by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7480
- docs: fix website error by @hardfist in https://github.com/web-infra-dev/rspack/pull/7506
- docs: remove deprecated configs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7519
- docs: add MarsCode to online examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7525
- docs: correct property type style and filename by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7520
- docs: add overview flow chart for compiler hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7524
- docs: update benchmark data by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7548
- docs: correct LightningCssMinimizerRspackPlugin link by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7551
- docs: update chunk type by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7552
- docs: list top50 plugins compatibility by @9aoy in https://github.com/web-infra-dev/rspack/pull/7554
- docs(module-federation): optimize module federation version selection by @zhoushaw in https://github.com/web-infra-dev/rspack/pull/7558
- docs: add overview flow chart for compilation hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7555
- docs: remove experiments flags by @hardfist in https://github.com/web-infra-dev/rspack/pull/7560
- docs: remove examples page by @9aoy in https://github.com/web-infra-dev/rspack/pull/7561
- docs: update glossary by @hardfist in https://github.com/web-infra-dev/rspack/pull/7562
- docs: delete benchmark page by @hardfist in https://github.com/web-infra-dev/rspack/pull/7566
- docs: upgrade Rspress version by @zoolsher in https://github.com/web-infra-dev/rspack/pull/7581
- docs: rewrite tree-shaking doc by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7568
- docs: add performance bottlenecks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7593
- docs: keep webpack dependency in some cases by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7619
- docs: update eslint-webpack-plugin compatible status by @9aoy in https://github.com/web-infra-dev/rspack/pull/7627
- docs: filter rspack specific test cases by @9aoy in https://github.com/web-infra-dev/rspack/pull/7629
- docs: migrating from rspack 0.x by @SyMind in https://github.com/web-infra-dev/rspack/pull/7625
- docs: add notice about htmlRspackPlugin not support ejs syntax by @hardfist in https://github.com/web-infra-dev/rspack/pull/7652
- docs: rslib link should be its github repo by @gwy15 in https://github.com/web-infra-dev/rspack/pull/7655
- docs: use --experimental-transform-types load tsconfig by @hardfist in https://github.com/web-infra-dev/rspack/pull/7667
- docs(mf): add
@module-federation/sdkto FAQ by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7669 - docs(landing-page): brand NEW landing page by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7550
- docs(landingpage): replace some not clear icon by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7685
- docs(landingpage): remove "show all features" button by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7692
- docs(landingpage): fix the section width by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7695
- docs: improve migrating from 0.x by @SyMind in https://github.com/web-infra-dev/rspack/pull/7694
- docs(landingpage): add star animation by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7697
- docs: remove rspack config diff docs by @SyMind in https://github.com/web-infra-dev/rspack/pull/7696
- docs: remove all 0.x version badges by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7698
- docs(landingpage): UI improvements by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7699
- docs(landingpage): fix center button text by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7701
- docs(landingpage): add lottie animation by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7702
- docs(homepage): lazy load images by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7706
Other Changes
- chore(deps): update crates (major) by @renovate in https://github.com/web-infra-dev/rspack/pull/6855
- refactor!: remove resolve tsConfigPath by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6872
- chore: remove old tree shaking code by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6884
- refactor: worker parser plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6881
- revert: chore(deps): update crates (major) (#6855) by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6894
- test: fix using HotSnapshotProcessor in webpack by @colinaaa in https://github.com/web-infra-dev/rspack/pull/6885
- chore: refactor rspack_plugin_devtool by @SyMind in https://github.com/web-infra-dev/rspack/pull/6897
- chore: optimize profile dir creation by @xc2 in https://github.com/web-infra-dev/rspack/pull/6879
- chore(release): rename package canary name by @SoonIter in https://github.com/web-infra-dev/rspack/pull/6906
- chore: clean up unused dev dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6924
- chore: sanitize file paths by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6931
- chore: remove unused benchcases folder by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6936
- refactor: improve code style in concate module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/6791
- chore(workflow): should allow alpha npm tag by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6976
- chore(workflow): fix permissions for prod release by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6979
- release: 1.0.0-alpha.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6978
- refactor: move test dirs to tests by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6973
- test: stable stage-0-factorize test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6981
- refactor: resolve nodejs 22 deprecation warning by @xc2 in https://github.com/web-infra-dev/rspack/pull/6987
- chore: disable renovate update for swc by @hardfist in https://github.com/web-infra-dev/rspack/pull/6991
- chore: add deprecated notice for rspack-plugin-minify by @hardfist in https://github.com/web-infra-dev/rspack/pull/6992
- chore: fix renovate config by @xc2 in https://github.com/web-infra-dev/rspack/pull/6994
- refactor: extract lite tapable by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7000
- refactor!: move global trace export to experiments by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7019
- chore(module-federation): update @module-federation/runtime-tools to 0.2.3 version by @zhoushaw in https://github.com/web-infra-dev/rspack/pull/7025
- test: enable webpack cjs-treeshaking reexport cases by @xc2 in https://github.com/web-infra-dev/rspack/pull/7017
- chore(readme): remove underlines between badges by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7024
- chore: release force use github runner by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7038
- test: enable cases/context/issue-10969 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7041
- chore: release run macos test when arch match by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7046
- release: 1.0.0-alpha.1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7042
- chore(lite-tapable): clean up temp/api.md by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7048
- chore: nightly release upload webpack-test metric data by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7051
- chore: nightly release add write contents permission by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7053
- chore: add provenance option to pnpm publish by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7054
- chore: migrate lint to biome by @hardfist in https://github.com/web-infra-dev/rspack/pull/7061
- refactor: port inner graph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7043
- chore(infra): use import type by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7099
- chore(infra): update biome useArrowFunction by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7103
- chore(deps): update dependency sass-loader to v14 by @renovate in https://github.com/web-infra-dev/rspack/pull/7095
- refactor: report
Module not foundinstead ofResolve Errorby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7106 - test: enable passed webpack config cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7120
- refactor: harmony export parser plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7110
- test: enable stats test by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7115
- release: 1.0.0-alpha.3 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7121
- refactor: remove clone in js walk by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7137
- refactor: remove identifier.js ts-expect-error by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7132
- refactor: remove ErrorHelpers.js ts-expect-error by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7136
- chore(test-tools): fix type issue for benchmark CI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7142
- refactor: js estree statement by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7141
- ci: fix the action that does not use biome in fact by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7157
- test: calcuate test compatibility by test case by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7158
- chore(infra): use pnpm isolated node-linker by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7094
- chore(biome): useNumberNamespace and useConst by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7160
- chore(deps): Phantom dependencies of x.mjs and scripts by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7178
- refactor: move context dependency
walk_expressionintocreate_context_dependencyby @CPunisher in https://github.com/web-infra-dev/rspack/pull/6963 - chore(infra/biome): noUnusedTemplateLiteral by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7176
- release: 1.0.0-alpha.4 by @SyMind in https://github.com/web-infra-dev/rspack/pull/7179
- ci: add document lint changed check by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7188
- test(css-extract): enable function filename test by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7196
- chore(infra/biome): rule useNodejsImportProtocol by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7181
- release: 1.0.0-alpha.5 by @SyMind in https://github.com/web-infra-dev/rspack/pull/7201
- refactor: allows minimal/detailed/summary stats presets in configuration by @xc2 in https://github.com/web-infra-dev/rspack/pull/7186
- chore(deps): add check-dependency-version for devDependencies by @SoonIter in https://github.com/web-infra-dev/rspack/pull/6323
- refactor: allow passing function type to assets generator.filename by @xc2 in https://github.com/web-infra-dev/rspack/pull/7206
- chore(deps): unify dependencies with check-depedency-version by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7208
- test: full enable some webpack stats test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7213
- test: enable webpack test cases of webpackHot.data by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7217
- ci(website/infra): lint-staged issue in website by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7224
- test: enable preact refresh snapshot test by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7232
- test: enable more available tests by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7234
- test: enable inner graph basic webpack test case by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7237
- chore(deps): typescript phantom dependence by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7235
- ci: speedup free disk space job by @xc2 in https://github.com/web-infra-dev/rspack/pull/7241
- refactor: change ansiHTML to ts and esm by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7244
- refactor(typescript): refactor
packages/rspack/src/utilfrom js to ts and esm by @jithyan in https://github.com/web-infra-dev/rspack/pull/7246 - refactor: remove duplicated extract member expression info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7248
- chore(deps): update zod to ^3.23.8 by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7253
- test: add test case for runtime condition by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7250
- refactor(typescript):
packages/rspack/src/configfrom js to ts/esm by @jithyan in https://github.com/web-infra-dev/rspack/pull/7255 - refactor(typescript): loader runner to ts by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7247
- chore(infra/biome): rule useEnumInitializers by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7260
- chore(infra/biome): rule useLiteralKeys by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7261
- chore(infra/biome): rule noSvgWithoutTitle by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7262
- chore(infra/biome): rule noDoubleEquals by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7265
- chore(infra/biome): rule noForEach by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7266
- chore(infra/biome): rule useSelfClosingElements by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7267
- chore(infra/biome): rule useButtonType by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7268
- refactor(typescript): packages/rspack/src/template from js to ts and esm by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7258
- ci(fix): jest error in rspack-dev-server by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7282
- ci: fix jest error of rspack-dev-server by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7284
- chore(infra/biome): rule noUselessElse by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7263
- refactor: reuse binary evaluation expression and support null coalescing by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7280
- ci: solve slow build & test in windows by @SyMind in https://github.com/web-infra-dev/rspack/pull/7294
- test: add diff test case of concatenated runtime condition by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7296
- refactor(plugin/css-extract): use typescript for css-extract-hmr by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7245
- chore(ci): fix ci wrong by @SyMind in https://github.com/web-infra-dev/rspack/pull/7302
- chore: run
prebundlewhen prepare by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7304 - test: move native loader test to
rspack-test-toolsby @colinaaa in https://github.com/web-infra-dev/rspack/pull/7303 - refactor: using object form of lightningcss feature options by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7311
- release: 1.0.0-beta.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7316
- chore: add funding page by @hardfist in https://github.com/web-infra-dev/rspack/pull/7318
- chore(deps): crates update by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7342
- refactor(typescript): packages/rspack/src/lib from js to ts and esm by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7289
- chore(infra/biome): switch the biome.jsonc to "off" by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7357
- refactor: remove module graph accessor by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7368
- chore(webpack-test): remove unnecessary snapshots by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7329
- release: 1.0.0-beta.1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7367
- refactor(typescript): packages/rspack/src/lib/formatLocation by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7375
- chore(infra/rust-toolchain): upgrade rust 1.80.0 nightly by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7349
- refactor(typescript): packages/rspack/src/builtin-plugin by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7378
- refactor(typescript): packages/rspack/src/util/StatsFactory by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7381
- refactor(typescript): packages/rspack/src/logging-truncateArgs by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7383
- refactor(typescript): packages/rspack/src/util/memoize by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7376
- refactor(typescript): packages/rspack/src/logging/runtime by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7377
- refactor!: align css runtime by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7306
- refactor(typescript): packages/rspack/src/util/webpack by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7388
- chore(infra/biome): enable noUselessTernary by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7386
- chore(infra/biome): enable noVar by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7380
- chore(infra/biome): enable noConstEnum by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7385
- refactor: copiable export info by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7390
- refactor(typescript): packages/rspack/src/node/nodeConsole by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7392
- chore(infra/biome): enable noEmptyPattern by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7384
- ci(infra/typos): fix the styl typos by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7398
- chore(infra/biome): enable useTemplate by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7395
- chore(infra/biome): enable more rules by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7387
- ci: git clean exclude by @SyMind in https://github.com/web-infra-dev/rspack/pull/7401
- refactor(rust): replace once_cell with std::sync::LazyLock by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7403
- test: enable more webpack-tests by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7411
- release: 1.0.0-beta.2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7418
- test: enable inner graph and concat modules for runtime condition diff test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7416
- ci: fix git clean wrong by filename too long by @SyMind in https://github.com/web-infra-dev/rspack/pull/7425
- chore(deps): update dependency sass-loader to v16 by @renovate in https://github.com/web-infra-dev/rspack/pull/7370
- refactor(type): increase type-coverage by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7437
- chore(infra/biome): enable noParameterAssign by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7430
- refactor(typescript): increase typescript type coverage to 100% for rspack-plugin-react-refresh by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7448
- chore: remove log in mf test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7451
- chore: documentation chores, typo, format, links, etc by @AkatQuas in https://github.com/web-infra-dev/rspack/pull/7457
- refactor!: redesign minimizer plugin options by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7444
- release: 1.0.0-beta.3 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7471
- chore(deps): update cargo-bins/cargo-binstall action to v1.9.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/7475
- chore(infra/biome): enable noAccumulatingSpread by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7492
- chore: add description for all crates by @hardfist in https://github.com/web-infra-dev/rspack/pull/7494
- chore: remove useless swc_core features by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7496
- chore(workflow): enable dependency dashboard of renovate by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7498
- chore: move non-core packages to rspack-contrib by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7499
- chore: fix missing metadata in publish by @hardfist in https://github.com/web-infra-dev/rspack/pull/7501
- refactor: remove get presentational dependencies for block by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7502
- chore: increase publish limitation by @hardfist in https://github.com/web-infra-dev/rspack/pull/7515
- release: 1.0.0-beta.4 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7521
- refactor(typescript): packages/rspack/src/node/NodeWatchFileSystem by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7528
- chore(infra): improve the configuration of
justfileby @shulaoda in https://github.com/web-infra-dev/rspack/pull/7526 - chore: polish some words on introduction by @hardfist in https://github.com/web-infra-dev/rspack/pull/7557
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/7564
- test(plugin): test html plugin with basic cases of html-webpack-plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7571
- chore(deps): bump plugin-react-refresh and lite-tapable to v1.0.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7580
- refactor: improve esm harmony dependencies structure by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7576
- refactor: module hash by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7569
- release: 1.0.0-beta.5 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7586
- chore: fix version in case sensitive plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7607
- refactor: drop support for non-UTF8 paths by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7570
- chore(rspack_plugin_javascript): bump fast-glob 0.4.0 by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7621
- chore(infra/biome): enable noGlobalEval by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7623
- test: add more test cases for asi with sequence expressions by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7626
- chore: remove
Compilation.updateAssetcomment by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7628 - refactor(core): remove unnecessary enum for resolver by @hardfist in https://github.com/web-infra-dev/rspack/pull/7631
- refactor: remove extra CommonJs dependency locations by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7622
- chore(deps): update dependency sass-loader to v16.0.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/7633
- refactor: dependency location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7635
- refactor: add more clippy rule by @hardfist in https://github.com/web-infra-dev/rspack/pull/7594
- chore(workflow): allow renovate to bump npm dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7638
- refactor: resolve conflicts for dependency location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7641
- ci: bump simd-json by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7663
- release: 1.0.0-rc.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7662
- refactor: use trait for dependencyConditionFn for better cacheable by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7679
- release: 1.0.0-rc.1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7678
- revert: feat(diagnostic): improve diagnostics for swc wasm plugins by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7690
- release: 1.0.0-rc.2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7708
New Contributors
- @ebektasiadis made their first contribution in https://github.com/web-infra-dev/rspack/pull/6886
- @sudoaugustin made their first contribution in https://github.com/web-infra-dev/rspack/pull/6889
- @escaton made their first contribution in https://github.com/web-infra-dev/rspack/pull/6928
- @liangchaofei made their first contribution in https://github.com/web-infra-dev/rspack/pull/7092
- @simonxabris made their first contribution in https://github.com/web-infra-dev/rspack/pull/7111
- @jithyan made their first contribution in https://github.com/web-infra-dev/rspack/pull/7246
- @lalala-h made their first contribution in https://github.com/web-infra-dev/rspack/pull/7283
- @Mumujianguang made their first contribution in https://github.com/web-infra-dev/rspack/pull/7320
- @JoseVSeb made their first contribution in https://github.com/web-infra-dev/rspack/pull/7345
- @easy1090 made their first contribution in https://github.com/web-infra-dev/rspack/pull/7322
- @tatchi made their first contribution in https://github.com/web-infra-dev/rspack/pull/7273
- @AkatQuas made their first contribution in https://github.com/web-infra-dev/rspack/pull/7414
- @wChenonly made their first contribution in https://github.com/web-infra-dev/rspack/pull/7510
- @gwy15 made their first contribution in https://github.com/web-infra-dev/rspack/pull/7655
- @witsaint made their first contribution in https://github.com/web-infra-dev/rspack/pull/7653
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.5...v1.0.0
- fix: compilation errors and warnings should be
- 1.0.0-rc.227 Aug 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-rc.2 -->
What's Changed
Exciting New Features ๐
- feat: apply affected modules to all cgm phase by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7684
- feat: apply affected modules for provide exports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7703
- feat: support
"loose-unrecognized-keys"for config validation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7705
Bug Fixes ๐
- fix:
contextshould be an absolute path by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7687 - fix(core): don't panic when load config failed by @hardfist in https://github.com/web-infra-dev/rspack/pull/7693
- fix(rspack-resolver): enable pnp feature by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7707
Document Updates ๐
- docs(landing-page): brand NEW landing page by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7550
- docs(landingpage): replace some not clear icon by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7685
- docs(landingpage): remove "show all features" button by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7692
- docs(landingpage): fix the section width by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7695
- docs: improve migrating from 0.x by @SyMind in https://github.com/web-infra-dev/rspack/pull/7694
- docs(landingpage): add star animation by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7697
- docs: remove rspack config diff docs by @SyMind in https://github.com/web-infra-dev/rspack/pull/7696
- docs: remove all 0.x version badges by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7698
- docs(landingpage): UI improvements by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7699
- docs(landingpage): fix center button text by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7701
- docs(landingpage): add lottie animation by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7702
- docs(homepage): lazy load images by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7706
Other Changes
- revert: feat(diagnostic): improve diagnostics for swc wasm plugins by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7690
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-rc.1...v1.0.0-rc.2
- 1.0.0-rc.126 Aug 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-rc.1 -->
What's Changed
Exciting New Features ๐
- feat: cache unaffected for cgm code gen by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7646
Bug Fixes ๐
- fix: should resolve aliased loader module with query by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7660
- fix:
Pathpitfall for loader type by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7666 - fix(security): DOM clobbering in auto public path by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7664
- fix: resolve issue with external array not working in UMD libraryTarget by @inottn in https://github.com/web-infra-dev/rspack/pull/7675
- fix(deps): bump webpack-dev-middleware v7.4.2 to fix assetsInfo by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7676
- fix(create-rspack): should not replace plugin-react-refresh version by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7677
- fix(cli): peerDep allows @rspack/[email protected] by @hardfist in https://github.com/web-infra-dev/rspack/pull/7680
- fix: reuse codegen results only for new incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7681
- fix: fallback to next main field when resolve failed by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7670
Document Updates ๐
- docs: use --experimental-transform-types load tsconfig by @hardfist in https://github.com/web-infra-dev/rspack/pull/7667
- docs(mf): add
@module-federation/sdkto FAQ by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7669
Other Changes
- refactor: use trait for dependencyConditionFn for better cacheable by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7679
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-rc.0...v1.0.0-rc.1
- 1.0.0-rc.023 Aug 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-rc.0 -->
๐ก Highlights
Faster
eval-source-mapeval-source-mapis now 80% faster than the previous version, see https://github.com/web-infra-dev/rspack/pull/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-plugintoHtmlRspackPluginmore 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: https://github.com/web-infra-dev/rspack/pull/7661
What's Changed
Breaking Changes ๐
- feat!: support
optimization.emitOnErrorsby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7595 - feat(core)!: change dojang default escape|unescape to lodash.template syntax by @hardfist in https://github.com/web-infra-dev/rspack/pull/7661
Performance Improvements โก
- perf: warn case sensitive plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7606
- perf: improve performance of eval-source-map by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7630
Exciting New Features ๐
- feat(html): improve error handling by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7600
- feat: add cache for process runtime requirements by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7601
- feat(rspack_plugin_swc_js_minimizer): add minify option by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7599
- feat(core): bump rspack_resolver 0.2.0 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7532
- feat(deps): bump @module-federation/runtime-tools 0.5.1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7649
- feat(mf2): add shareStrategy by @2heal1 in https://github.com/web-infra-dev/rspack/pull/7651
- feat: add minify option to lightningcss-loader by @witsaint in https://github.com/web-infra-dev/rspack/pull/7653
Bug Fixes ๐
- fix(node-stuff): use more conventional shim method by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7587
- fix: missing
compiler.inputFileSystemtype by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7597 - fix: should not panic if provide dependency is not resolved by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7609
- fix: remove the unnecessary logic for inserting semicolons by @inottn in https://github.com/web-infra-dev/rspack/pull/7615
- fix: allow
nullandundefinedin EnvironmentPlugin by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7617 - fix: should not stringify loader loading requests by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7643
- fix(mf2): correct mf shared options by @2heal1 in https://github.com/web-infra-dev/rspack/pull/7640
- fix: unexpected ASI generation with sequence expression by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7650
- fix: wrong
builtin:swc-loadersource maps ifinputSourceMapis provided by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7654 - fix(html): emit error when param not found by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7656
- fix(mf2): initializeSharingInitTokens should be object by @2heal1 in https://github.com/web-infra-dev/rspack/pull/7657
- fix: "module-import" simply falls back to "module" when bails by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7585
Document Updates ๐
- docs: add performance bottlenecks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7593
- docs: keep webpack dependency in some cases by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7619
- docs: update eslint-webpack-plugin compatible status by @9aoy in https://github.com/web-infra-dev/rspack/pull/7627
- docs: filter rspack specific test cases by @9aoy in https://github.com/web-infra-dev/rspack/pull/7629
- docs: migrating from rspack 0.x by @SyMind in https://github.com/web-infra-dev/rspack/pull/7625
- docs: add notice about htmlRspackPlugin not support ejs syntax by @hardfist in https://github.com/web-infra-dev/rspack/pull/7652
- docs: rslib link should be its github repo by @gwy15 in https://github.com/web-infra-dev/rspack/pull/7655
Other Changes
- chore: fix version in case sensitive plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7607
- refactor: drop support for non-UTF8 paths by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7570
- chore(rspack_plugin_javascript): bump fast-glob 0.4.0 by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7621
- chore(infra/biome): enable noGlobalEval by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7623
- test: add more test cases for asi with sequence expressions by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7626
- chore: remove
Compilation.updateAssetcomment by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7628 - refactor(core): remove unnecessary enum for resolver by @hardfist in https://github.com/web-infra-dev/rspack/pull/7631
- refactor: remove extra CommonJs dependency locations by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7622
- chore(deps): update dependency sass-loader to v16.0.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/7633
- refactor: dependency location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7635
- refactor: add more clippy rule by @hardfist in https://github.com/web-infra-dev/rspack/pull/7594
- chore(workflow): allow renovate to bump npm dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7638
- refactor: resolve conflicts for dependency location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7641
- ci: bump simd-json by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7663
New Contributors
- @gwy15 made their first contribution in https://github.com/web-infra-dev/rspack/pull/7655
- @witsaint made their first contribution in https://github.com/web-infra-dev/rspack/pull/7653
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.5...v1.0.0-rc.0
- Before: Use
- 1.0.0-beta.515 Aug 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-beta.5 -->
Highlights
Improved
HtmlRspackPluginrspack.HtmlRspackPluginhas a lot of improvements to be more in line with thehtml-webpack-plugin.- [Feat] Support
hashto append compilation hash - [Feat] Support
baseto inject base tag - [Feat] Support
scriptLoading=systemjs-module - [Feat] Support
[templatehash]in filename template, same as[contenthash] - [Breaking] Rename
excludedChunkstoexcludeChunks, 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.srcandlink.href - [Test] Passed html-webpack-plugin basic cases from 45 to 85
PR: https://github.com/web-infra-dev/rspack/pull/7577
Removed
SwcCssMinimizerRspackPluginThe
rspack.SwcCssMinimizerRspackPluginhas 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 https://github.com/web-infra-dev/rspack/pull/7577
- refactor!: disable css minify in html minify and remove SwcCssMinimizerRspackPlugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7547
Performance Improvements โก
- perf!: use browserslist-rs for lightningcss by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7544
Exciting New Features ๐
- feat: second param for loader hook by @SyMind in https://github.com/web-infra-dev/rspack/pull/7537
- feat(create-rspack): configure Lightning CSS targets by default by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7579
- feat(core): don't inject bundlerInfo in library mode by @hardfist in https://github.com/web-infra-dev/rspack/pull/7567
- feat: extract-css-plugin supports layer by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7583
Bug Fixes ๐
- fix: use intersection runtime for concat module code gen by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7523
- fix: chunk hash unstable by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7534
- fix: should insert semi after import, export, debugger and class field by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7529
- fix: check SuperProp in walk_call_expression by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7530
- fix: remove useless "module" external runtime by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7533
- fix(rust-core): no need to pass resolve_factory when using rust api by @hardfist in https://github.com/web-infra-dev/rspack/pull/7539
- fix(cli): wrong entry defaults from cli by @xc2 in https://github.com/web-infra-dev/rspack/pull/7541
- fix: source map plugin module should enable by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7545
- fix: avoid inner graph top level symbol for nested webpack_require by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7584
Document Updates ๐
- docs: correct property type style and filename by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7520
- docs: add overview flow chart for compiler hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7524
- docs: update benchmark data by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7548
- docs: correct LightningCssMinimizerRspackPlugin link by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7551
- docs: update chunk type by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7552
- docs: list top50 plugins compatibility by @9aoy in https://github.com/web-infra-dev/rspack/pull/7554
- docs(module-federation): optimize module federation version selection by @zhoushaw in https://github.com/web-infra-dev/rspack/pull/7558
- docs: add overview flow chart for compilation hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7555
- docs: remove experiments flags by @hardfist in https://github.com/web-infra-dev/rspack/pull/7560
- docs: remove examples page by @9aoy in https://github.com/web-infra-dev/rspack/pull/7561
- docs: update glossary by @hardfist in https://github.com/web-infra-dev/rspack/pull/7562
- docs: delete benchmark page by @hardfist in https://github.com/web-infra-dev/rspack/pull/7566
- docs: upgrade Rspress version by @zoolsher in https://github.com/web-infra-dev/rspack/pull/7581
- docs: rewrite tree-shaking doc by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7568
Other Changes
- refactor(typescript): packages/rspack/src/node/NodeWatchFileSystem by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7528
- chore(infra): improve the configuration of
justfileby @shulaoda in https://github.com/web-infra-dev/rspack/pull/7526 - chore: polish some words on introduction by @hardfist in https://github.com/web-infra-dev/rspack/pull/7557
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/7564
- test(plugin): test html plugin with basic cases of html-webpack-plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7571
- chore(deps): bump plugin-react-refresh and lite-tapable to v1.0.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7580
- refactor: improve esm harmony dependencies structure by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7576
- refactor: module hash by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7569
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.4...v1.0.0-beta.5
- [Feat] Support
- 1.0.0-beta.410 Aug 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-beta.4 -->
What's Changed
Exciting New Features ๐
- feat(stats): support
moduleReason.resolvedModuleby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7467 - feat(diagnostic): prettier diagnostics of magic comments by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7472
- feat: support compilation.modules[i].blocks by @SyMind in https://github.com/web-infra-dev/rspack/pull/7460
- feat: port "module-import" external type by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7479
- feat(node-stuff): implement
node-moduleshim by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7465 - feat(stats): support
isOverSizeLimitin stats by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7483 - feat: splitChunks support usedExports by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7485
- feat: support
stats.chunkGroup[].childAssetsby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7517 - feat: support module.size function in cacheGroups.[i].test by @SyMind in https://github.com/web-infra-dev/rspack/pull/7482
- feat: expose added/removed compilation.*_dependencies to js side by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7522
Bug Fixes ๐
- fix: patch asset info in update asset by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7464
- fix!: reuseExistingChunk should be false by default by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7489
- fix(modern-module): export syntax detect more invalid chars by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7493
- fix: concatenation should merge moduleโs chunk init fragments by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7504
- fix(modern-module): correct use bailout reason by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7513
- fix: maxInitialRequests should exists in cache groups by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7512
- fix(hmr): replacement of optionalChain is compatible with legacy versions by @wChenonly in https://github.com/web-infra-dev/rspack/pull/7510
Document Updates ๐
- docs: update stats options by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7473
- docs: list plugin compatible +5 by @9aoy in https://github.com/web-infra-dev/rspack/pull/7481
- docs: add link for Rspack 0.x website by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7484
- docs: list compatibility status of more plugins by @9aoy in https://github.com/web-infra-dev/rspack/pull/7488
- docs: add some missing options by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7480
- docs: fix website error by @hardfist in https://github.com/web-infra-dev/rspack/pull/7506
- docs: remove deprecated configs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7519
- docs: add MarsCode to online examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7525
Other Changes
- chore(deps): update cargo-bins/cargo-binstall action to v1.9.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/7475
- chore(infra/biome): enable noAccumulatingSpread by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7492
- chore: add description for all crates by @hardfist in https://github.com/web-infra-dev/rspack/pull/7494
- chore: remove useless swc_core features by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7496
- chore(workflow): enable dependency dashboard of renovate by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7498
- chore: move non-core packages to rspack-contrib by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7499
- chore: fix missing metadata in publish by @hardfist in https://github.com/web-infra-dev/rspack/pull/7501
- refactor: remove get presentational dependencies for block by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7502
- chore: increase publish limitation by @hardfist in https://github.com/web-infra-dev/rspack/pull/7515
New Contributors
- @wChenonly made their first contribution in https://github.com/web-infra-dev/rspack/pull/7510
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.3...v1.0.0-beta.4
- feat(stats): support
- 1.0.0-beta.36 Aug 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-beta.3 -->
What's Changed
Breaking Changes ๐
SwcJsMinimizerRspackPlugin
Move all SWC options to
minimizerOptions:- The
compressoption has been moved tominimizerOptions.compress. - The
mangleoption has been moved tominimizerOptions.mangle. - The
formatoption has been moved tominimizerOptions.format. - The
moduleoption has been moved tominimizerOptions.module.
module.exports = { optimization: { minimizer: [ new rspack.SwcJsMinimizerRspackPlugin({ - format: { - ecma: 6, - }, + minimizerOptions: { + format: { + ecma: 6, + }, + }, }), ], }, };LightningCssMinimizerRspackPlugin
- The
browserslistoption has been renamed tominimizerOptions.targets.
module.exports = { optimization: { minimizer: [ new rspack.LightningCssMinimizerRspackPlugin({ - browserslist: 'Chrome >= 53', + minimizerOptions: { + targets: 'Chrome >= 53', + }, }), ], }, };PR: https://github.com/web-infra-dev/rspack/pull/7444
Performance Improvements โก
- perf: rule matcher allocates only if
resource_pathis not a valid UTF-8 sequence by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7441 - perf: bump lightningcss to remove duplicated browerslist-rs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7461
Exciting New Features ๐
- feat: support compilation.entries by @SyMind in https://github.com/web-infra-dev/rspack/pull/7396
- feat: add
compiler.rspackby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7434 - feat: support seal hook in js side by @SyMind in https://github.com/web-infra-dev/rspack/pull/7428
- feat(dev-server): export package version by @leimonio in https://github.com/web-infra-dev/rspack/pull/7305
Bug Fixes ๐
- fix: add custom browserslist target schema by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7421
- fix: provided exports for add entry modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7424
- fix(playground/cases): replace window.onmessage with self.onmessage in worker test case by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7431
- fix: remove unused JSON schemas for CSS extract plugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7442
- fix: update deny.toml by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7447
- fix: dynamic entry plugin desc to options by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7458
- fix: map of empty file should have mappings field by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7456
- fix: deep merge module resolve options by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7470
- fix: stats typescript wrong by @SyMind in https://github.com/web-infra-dev/rspack/pull/7466
- fix: type mismatch when using webpack plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7455
Document Updates ๐
- docs: add compiler api by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7423
- docs: update ecosystem links by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7435
- docs: add MultiCompiler API by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7436
- docs: add Stats API by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7439
- docs: update dependencies and fix tsconfig paths by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7440
- docs: remove duplicated part in document of JavaScript API by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7443
- docs: bump
@rstack-dev/doc-uito add Rslib and awesome Rspack by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/7445 - docs: add guide for different CSS usages by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7446
- docs: remove perf note for mergeDuplicateChunks by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7459
- docs: explain usage of inner graph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7462
- docs: add detailed explanation for NormalModuleFactory hooks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7468
- docs: correct some statements of code splitting and splitChunks by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7469
Other Changes
- test: enable inner graph and concat modules for runtime condition diff test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7416
- ci: fix git clean wrong by filename too long by @SyMind in https://github.com/web-infra-dev/rspack/pull/7425
- chore(deps): update dependency sass-loader to v16 by @renovate in https://github.com/web-infra-dev/rspack/pull/7370
- refactor(type): increase type-coverage by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7437
- chore(infra/biome): enable noParameterAssign by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7430
- refactor(typescript): increase typescript type coverage to 100% for rspack-plugin-react-refresh by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7448
- chore: remove log in mf test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7451
- chore: documentation chores, typo, format, links, etc by @AkatQuas in https://github.com/web-infra-dev/rspack/pull/7457
- refactor!: redesign minimizer plugin options by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7444
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.2...v1.0.0-beta.3
- The
- 1.0.0-beta.22 Aug 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-beta.2 -->
What's Changed
Performance Improvements โก
- perf: stats to js speed by @SyMind in https://github.com/web-infra-dev/rspack/pull/7344
Exciting New Features ๐
- feat: better diagnostic report for harmony residual dependencies by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7374
- feat: add memory cache of javascript plugins by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7389
- feat: add partial lazyOptions.backend options by @tatchi in https://github.com/web-infra-dev/rspack/pull/7273
- feat: support
compilation.chunkGroup[].isInitial()by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7406 - feat(diagnostic): improve diagnostics for swc wasm plugins by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7391
Bug Fixes ๐
- fix(modern-module): compat with more export cases by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7394
- fix: other git clean command wrong by @SyMind in https://github.com/web-infra-dev/rspack/pull/7404
- fix: render filename with dollar sign by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7402
- fix: stats perf degradation in hmr by @SyMind in https://github.com/web-infra-dev/rspack/pull/7407
- fix(mf2): extra provide sharing data by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7408
- fix: change some
walk_block_statementtowalk_statementby @CPunisher in https://github.com/web-infra-dev/rspack/pull/7410 - fix(rspack_loader_lightningcss): customMedia camelCase option by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7409
Document Updates ๐
- docs: update compiler hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7366
- docs: remove outdated builtin config docs by @SyMind in https://github.com/web-infra-dev/rspack/pull/7372
- docs: add Rsdoctor documents by @easy1090 in https://github.com/web-infra-dev/rspack/pull/7322
- docs: add doc for html by @SyMind in https://github.com/web-infra-dev/rspack/pull/7373
- docs: grammar fix by @AkatQuas in https://github.com/web-infra-dev/rspack/pull/7414
- docs: group api docs by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7415
Other Changes
- refactor(typescript): packages/rspack/src/lib/formatLocation by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7375
- chore(infra/rust-toolchain): upgrade rust 1.80.0 nightly by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7349
- refactor(typescript): packages/rspack/src/builtin-plugin by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7378
- refactor(typescript): packages/rspack/src/util/StatsFactory by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7381
- refactor(typescript): packages/rspack/src/logging-truncateArgs by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7383
- refactor(typescript): packages/rspack/src/util/memoize by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7376
- refactor(typescript): packages/rspack/src/logging/runtime by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7377
- refactor!: align css runtime by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7306
- refactor(typescript): packages/rspack/src/util/webpack by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7388
- chore(infra/biome): enable noUselessTernary by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7386
- chore(infra/biome): enable noVar by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7380
- chore(infra/biome): enable noConstEnum by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7385
- refactor: copiable export info by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7390
- refactor(typescript): packages/rspack/src/node/nodeConsole by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7392
- chore(infra/biome): enable noEmptyPattern by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7384
- ci(infra/typos): fix the styl typos by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7398
- chore(infra/biome): enable useTemplate by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7395
- chore(infra/biome): enable more rules by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7387
- ci: git clean exclude by @SyMind in https://github.com/web-infra-dev/rspack/pull/7401
- refactor(rust): replace once_cell with std::sync::LazyLock by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7403
- test: enable more webpack-tests by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7411
New Contributors
- @easy1090 made their first contribution in https://github.com/web-infra-dev/rspack/pull/7322
- @tatchi made their first contribution in https://github.com/web-infra-dev/rspack/pull/7273
- @AkatQuas made their first contribution in https://github.com/web-infra-dev/rspack/pull/7414
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.1...v1.0.0-beta.2
- 1.0.0-beta.130 Jul 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-beta.1 -->
Highlights ๐ก
Import Attributes
Rspack now supports Import Attributes by defaults:
import json from "./foo.json" with { type: "json" }; import("foo.json", { with: { type: "json" } });PR: https://github.com/web-infra-dev/rspack/pull/7333
Layers
Rspack now supports module and chunk layers. This feature can be used by frameworks like Rsnext (The Rspack-based Next.js) to implement React Server Components.
- Example: build modern and legacy bundles at the same time:
export default { entry: { index: { import: './src/index.js', layer: 'modern', }, 'index-legacy': { import: './src/index.js', layer: 'legacy', }, }, module: { rules: [ { test: /\.js$/, issuerLayer: 'modern', use: [ { loader: 'builtin:swc-loader', options: { env: { targets: 'Chrome >= 87', }, }, }, ], }, { test: /\.js$/, issuerLayer: 'legacy', use: [ { loader: 'builtin:swc-loader', options: { env: { targets: 'ie >= 11', }, }, }, ], }, ], }, experiments: { layers: true, }, };- Example: Customize rules and resolve options for RSC modules
export default { module: { rules: [ // set `layer` for some modules { test: /rsc-modules/, layer: 'rsc', }, // set resolve options for specified layer { issuerLayer: 'rsc', resolve: { conditionNames: ['react-server', '...'], }, }, { // set loaders for specified layer oneOf: [ { issuerLayer: 'rsc', test: /\.tsx?$/, use: ['some-rsc-loader'], }, { test: /\.tsx?$/, use: ['some-normal-loader'], }, ], }, ], }, experiments: { layers: true, }, };PR: https://github.com/web-infra-dev/rspack/pull/7330
What's Changed
Performance Improvements โก
- perf: no need to require entire enhanced-resolve by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7343
- perf(allocator): use mimalloc v2 for all by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7361
Exciting New Features ๐
- feat: experiments layers by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7330
- feat(css-extract): avoid reloading all CSS when hot load by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7314
- feat(modern-module): force concaten single module by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7317
- feat: better diagnostic report for harmony dependency by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7337
- feat: support
parser.importMetaandoutput.importMetaNameby @xc2 in https://github.com/web-infra-dev/rspack/pull/7231
Bug Fixes ๐
- fix: lightningcss-loader targets array not work as expected by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7331
- fix(rspack_plugin_asset): repect user environment config when inlining svg by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7347
- fix: rspack errors don't support the correct location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7328
- fix: add runtime condition for harmony reexport checked by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7353
- fix: remove nonsensical intersection types by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7360
- fix: builtin:lightningcss-loader shuold keep loader query by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7363
Document Updates ๐
- docs(devServer): update webpack-dev-server v5 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7319
- docs(blog): correcting the description of decorator configuration in v0.4 by @Mumujianguang in https://github.com/web-infra-dev/rspack/pull/7320
- docs: add compilation object by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7321
- docs: add
serwistin community compatibility table by @JoseVSeb in https://github.com/web-infra-dev/rspack/pull/7345 - docs: include types from common mdx chunks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7323
- docs: enable prettier for types in website by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/7350
- docs: import antd on demand by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/7351
- docs: bad symbol in compilation-hooks.mdx by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7352
- docs: improve CssExtractRspackPlugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7362
- docs: add Logger API by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7365
Other Changes
- chore: add funding page by @hardfist in https://github.com/web-infra-dev/rspack/pull/7318
- chore(deps): crates update by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7342
- refactor(typescript): packages/rspack/src/lib from js to ts and esm by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7289
- chore(infra/biome): switch the biome.jsonc to "off" by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7357
- refactor: remove module graph accessor by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7368
- chore(webpack-test): remove unnecessary snapshots by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7329
New Contributors
- @Mumujianguang made their first contribution in https://github.com/web-infra-dev/rspack/pull/7320
- @JoseVSeb made their first contribution in https://github.com/web-infra-dev/rspack/pull/7345
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.0...v1.0.0-beta.1
- 1.0.0-beta.026 Jul 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-beta.0 -->
Performance Improvements โก
In version 1.0.0-beta.0 we have made a number of performance optimizations, which together add up to significant performance gains. According to benchmark data, Rspack's dev startup is 4.7% faster, and its prod build is 11% faster.
Detailed changes:
- perf: reduce allocation for
Statsby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7124 - perf: reduce allocation for parsing by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7219
- perf: use Set as Queue to solve the duplication by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7233
- perf: reduce allocation for
ModuleRulematching by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7249 - perf: reduce large pre-allocations for
JavascriptParser::newby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7286 - perf: faster hasher for
Ukeys by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7287 - perf: a bunch of small improvement for ConcatenatedModule by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7257
- perf: reduce allocation for adding dependencies by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7301
Breaking Changes ๐
Upgraded to latest SWC
@rspack/corenow depends onswc_corev0.99 (previously v0.96).If your project is using the SWC Wasm plugin, this will be a breaking change, and you will need to upgrade the SWC Wasm plugin to the latest version.
PR: https://github.com/web-infra-dev/rspack/pull/7292
Upgraded to webpack-dev-server v5
@rspack/clinow depends onwebpack-dev-serverv5 (previously v4).If you are using
@rspack/cli, please be aware of the following breaking changes:- The minimum supported Node.js version of
webpack-dev-server@5is18.12.0. - The devServer configuration of Rspack include several breaking changes. Please refer to the webpack-dev-server v5 migration guide for more details.
PR: https://github.com/web-infra-dev/rspack/pull/7130
Deprecated @rspack/plugin-minify
rspack/plugin-minifyhas been deprecated as it was a temporary package to support Terser.Now Rspack has full support for
terser-webpack-plugin. If you need to use Terser as the minimizer, we recommend usingterser-webpack-plugininstead of@rspack/plugin-minify:// rspack.config.js - const MinifyPlugin = require('@rspack/plugin-minify'); + const TerserPlugin = require('terser-webpack-plugin'); module.exports = { optimization: { minimize: true, minimizer: [ - new MinifyPlugin({ minifier: 'terser' }), + new TerserPlugin(), ], }, };PR: https://github.com/web-infra-dev/rspack/pull/7307
All Changes
Exciting New Features ๐
- feat: support built-in
lightningcss-loaderby @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7214 - feat: support tree shaking with awaiting dynamic import by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7230
- feat: support output.charset and output.chunkLoadTimeout by @xc2 in https://github.com/web-infra-dev/rspack/pull/7189
- feat: support
__webpack_get_script_filename__by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7203 - feat: support webpack_exports_info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7205
- feat: external callbacks receive contextInfo.issuer by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7210
- feat: support destructuring of import.meta by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7229
- feat: align
publicPathoptions with webpack by @xc2 in https://github.com/web-infra-dev/rspack/pull/7216 - feat: support
compilation.chunkGroupsandcompilation.namedChunkGroupsby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7254 - feat(create-rspack): add vanilla templates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7295
- feat: support EntryPlugin filename function by @9aoy in https://github.com/web-infra-dev/rspack/pull/7297
- feat: support
test,includeandexcludeoptions forLightningCssMinimizerRspackPluginby @simonxabris in https://github.com/web-infra-dev/rspack/pull/7290
Bug Fixes ๐
- fix: panic in ImportMetaContextDependency when resolve failed by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7215
- fix: get correct parent module for root module of concatenated module by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7212
- fix: collect auxiliary assets from module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7222
- fix: fix panic about runtime order by @xc2 in https://github.com/web-infra-dev/rspack/pull/7240
- fix: real content full hash replacement by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7271
- fix(fs): remove generic in
FileSystemtrait by @hardfist in https://github.com/web-infra-dev/rspack/pull/7275 - fix(panic): stable runtime key sequence by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7272
- fix: corrects result for
truthy || anyandfalsy && anyby @xc2 in https://github.com/web-infra-dev/rspack/pull/7277 - fix: Update index.mdx by @lalala-h in https://github.com/web-infra-dev/rspack/pull/7283
- fix: runtime condition optimization with concate module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7285
- fix: markdown format index.mdx by @lalala-h in https://github.com/web-infra-dev/rspack/pull/7310
- fix: add
awaitto async module export by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7308 - fix: correct names of hash fields in asset.info by @xc2 in https://github.com/web-infra-dev/rspack/pull/7220
Document Updates ๐
- docs: add tool stack to homepage by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7221
- docs: add webpack_get_script_filename by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7236
- docs: complete processAssets document by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7274
- docs: fix build typo in the benchmark by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7300
Other Changes
- refactor: allows minimal/detailed/summary stats presets in configuration by @xc2 in https://github.com/web-infra-dev/rspack/pull/7186
- chore(deps): add check-dependency-version for devDependencies by @SoonIter in https://github.com/web-infra-dev/rspack/pull/6323
- refactor: allow passing function type to assets generator.filename by @xc2 in https://github.com/web-infra-dev/rspack/pull/7206
- chore(deps): unify dependencies with check-depedency-version by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7208
- test: full enable some webpack stats test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7213
- test: enable webpack test cases of webpackHot.data by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7217
- ci(website/infra): lint-staged issue in website by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7224
- test: enable preact refresh snapshot test by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7232
- test: enable more available tests by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7234
- test: enable inner graph basic webpack test case by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7237
- chore(deps): typescript phantom dependence by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7235
- ci: speedup free disk space job by @xc2 in https://github.com/web-infra-dev/rspack/pull/7241
- refactor: change ansiHTML to ts and esm by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7244
- refactor(typescript): refactor
packages/rspack/src/utilfrom js to ts and esm by @jithyan in https://github.com/web-infra-dev/rspack/pull/7246 - refactor: remove duplicated extract member expression info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7248
- chore(deps): update zod to ^3.23.8 by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7253
- test: add test case for runtime condition by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7250
- refactor(typescript):
packages/rspack/src/configfrom js to ts/esm by @jithyan in https://github.com/web-infra-dev/rspack/pull/7255 - refactor(typescript): loader runner to ts by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7247
- chore(infra/biome): rule useEnumInitializers by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7260
- chore(infra/biome): rule useLiteralKeys by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7261
- chore(infra/biome): rule noSvgWithoutTitle by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7262
- chore(infra/biome): rule noDoubleEquals by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7265
- chore(infra/biome): rule noForEach by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7266
- chore(infra/biome): rule useSelfClosingElements by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7267
- chore(infra/biome): rule useButtonType by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7268
- refactor(typescript): packages/rspack/src/template from js to ts and esm by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7258
- ci(fix): jest error in rspack-dev-server by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7282
- ci: fix jest error of rspack-dev-server by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7284
- chore(infra/biome): rule noUselessElse by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7263
- refactor: reuse binary evaluation expression and support null coalescing by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7280
- ci: solve slow build & test in windows by @SyMind in https://github.com/web-infra-dev/rspack/pull/7294
- test: add diff test case of concatenated runtime condition by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7296
- refactor(plugin/css-extract): use typescript for css-extract-hmr by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7245
- chore(ci): fix ci wrong by @SyMind in https://github.com/web-infra-dev/rspack/pull/7302
- chore: run
prebundlewhen prepare by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7304 - test: move native loader test to
rspack-test-toolsby @colinaaa in https://github.com/web-infra-dev/rspack/pull/7303 - refactor: using object form of lightningcss feature options by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7311
New Contributors
- @jithyan made their first contribution in https://github.com/web-infra-dev/rspack/pull/7246
- @lalala-h made their first contribution in https://github.com/web-infra-dev/rspack/pull/7283
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.5...v1.0.0-beta.0
- perf: reduce allocation for
- 1.0.0-alpha.517 Jul 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-alpha.5 -->
What's Changed
Performance Improvements โก
- perf: reduce allocation for filename render by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7138
- perf: optimize JS communication with lazy getters by @SyMind in https://github.com/web-infra-dev/rspack/pull/7163
- perf: reduce allocation for
TraceableErrorby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7192
Exciting New Features ๐
- feat: align part of compile time binary evaluation with webpack by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7187
- feat: align StatsAsset with webpack by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7190
- feat: add support for function types to
output.assetModuleFilenameby @xc2 in https://github.com/web-infra-dev/rspack/pull/7191 - feat: support webpackExports in magic comments by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7198
Bug Fixes ๐
- fix: eval condition expr range by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7184
- fix: pattern with wildcard and globstar can't match correctly when using
glob_matchby @shulaoda in https://github.com/web-infra-dev/rspack/pull/6668 - fix: update resource in nmf resolve hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7200
- fix: panic in hmr cause by auxiliary_assets by @SyMind in https://github.com/web-infra-dev/rspack/pull/7197
Document Updates ๐
- docs(format): run prettier --write by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7180
- docs: add new features section to home page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7183
- docs: improve home page SSG and benchmark data by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7185
- docs: update stats data by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7195
Other Changes
- refactor: move context dependency
walk_expressionintocreate_context_dependencyby @CPunisher in https://github.com/web-infra-dev/rspack/pull/6963 - chore(infra/biome): noUnusedTemplateLiteral by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7176
- release: 1.0.0-alpha.4 by @SyMind in https://github.com/web-infra-dev/rspack/pull/7179
- ci: add document lint changed check by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7188
- test(css-extract): enable function filename test by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7196
- chore(infra/biome): rule useNodejsImportProtocol by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7181
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.4...v1.0.0-alpha.5
- 1.0.0-alpha.416 Jul 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-alpha.4 -->
What's Changed
Performance Improvements โก
- perf: stats rust side generate speed by @SyMind in https://github.com/web-infra-dev/rspack/pull/7126
Exciting New Features ๐
- feat: add trace in hook macro by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7131
- feat: support
test,includeandexcludeoptions forSwcCssMinimizerRspackPluginby @simonxabris in https://github.com/web-infra-dev/rspack/pull/7111 - feat: override strict for javascript module by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7127
- feat(stats): support
StatsError.moduleTraceby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7123 - feat(stats): align stats factory by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7165
Bug Fixes ๐
- fix: remove all unused local variables by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7134
- fix: unset cjs exports type on access exports directly by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7143
- fix: avoid type error when skipLibCheck is not enabled by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7155
- fix: align resolverFactory resolveOptions parameter with resolve options by @9aoy in https://github.com/web-infra-dev/rspack/pull/7154
- fix: invalid "javascript/auto" rule.type in getRawGeneratorOptions by @9aoy in https://github.com/web-infra-dev/rspack/pull/7164
- fix: should merge parser.javascript by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7152
- fix(cli): update peerDep of rspack-cli by @hardfist in https://github.com/web-infra-dev/rspack/pull/7173
- fix(release): alpha peerDependencies in @rspack/cli by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7175
- fix: resource within scheme context by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7166
Document Updates ๐
- docs: use CssExtractRspackPlugin and experiments.css together by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7114
- docs: update benchmark data and improve UI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7159
- docs: update the quick start guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7162
- docs: polish up output config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7167
- docs: complete the target configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7168
- docs: reuse HomeLayout from Rspress by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7177
Other Changes
- refactor: harmony export parser plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7110
- test: enable stats test by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7115
- release: 1.0.0-alpha.3 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7121
- refactor: remove clone in js walk by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7137
- refactor: remove identifier.js ts-expect-error by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7132
- refactor: remove ErrorHelpers.js ts-expect-error by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7136
- chore(test-tools): fix type issue for benchmark CI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7142
- refactor: js estree statement by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7141
- ci: fix the action that does not use biome in fact by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7157
- test: calcuate test compatibility by test case by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7158
- chore(infra): use pnpm isolated node-linker by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7094
- chore(biome): useNumberNamespace and useConst by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7160
- chore(deps): Phantom dependencies of x.mjs and scripts by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7178
New Contributors
- @simonxabris made their first contribution in https://github.com/web-infra-dev/rspack/pull/7111
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.3...v1.0.0-alpha.4
- 1.0.0-alpha.311 Jul 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-alpha.3 -->
Highlights ๐ก
Rust Fat LTO
Rspack v1.0.0-alpha.3 enabled Rust 'fat' LTO to improve performance (https://github.com/web-infra-dev/rspack/pull/7088):
- Build performance (according to benchmark): 1% ~ 3% faster
- Smaller binary size (rspack.darwin-arm64.node): 55.4 MB -> 51.7 MB
Breaking Changes ๐
- feat!: detect conflicting values in
DefinePluginby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7045 - feat!: use native resolver in loader by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4945
Other Changes
Performance Improvements โก
- perf: cache
compilation.entrypointsby @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7059 - perf: remove unneeded string clone by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7104
- perf: reduce
get_schemeallocation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7109 - perf: reduce alloc for bailout reason by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7118
Exciting New Features ๐
- feat(rspack_core): nmf resolve in schema hook by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/7039
- feat: tree shakable output for module library by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6877
- feat: downgrade container runtime to es2015 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7085
- feat: to function can return Promise by @SyMind in https://github.com/web-infra-dev/rspack/pull/7068
- feat: support more features of
DefinePluginby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7108 - feat: align part of StatsError by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7091
- feat(create-rspack): update template package name by @liangchaofei in https://github.com/web-infra-dev/rspack/pull/7092
- feat: reduce unnecessary exports runtime by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7102
- feat: support type field for JsModule by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7093
Bug Fixes ๐
- fix: Add missing code for compatibility plugin by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7079
- fix: panic when get max target in find target by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7082
- fix: support css nonce by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7101
- fix(mf): runtime should respect output environment by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7113
- fix: should not shake used json fields by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7119
- fix: remove unsupported
builtins.provideby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7086
Document Updates ๐
- docs: add baidu verify file for SEO optimization by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7073
- docs: fix netlify redirect cause baidu verify failed by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7074
- docs: update license ui by @9aoy in https://github.com/web-infra-dev/rspack/pull/7076
- docs: update teams page, add Rsfamily members by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7083
- docs: enable sitemap for SEO by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7105
- docs: polish migration wordings by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7117
Other Changes
- refactor: port inner graph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7043
- chore(infra): use import type by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7099
- chore(infra): update biome useArrowFunction by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7103
- chore(deps): update dependency sass-loader to v14 by @renovate in https://github.com/web-infra-dev/rspack/pull/7095
- refactor: report
Module not foundinstead ofResolve Errorby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7106 - test: enable passed webpack config cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7120
New Contributors
- @liangchaofei made their first contribution in https://github.com/web-infra-dev/rspack/pull/7092
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.2...v1.0.0-alpha.3
- 1.0.0-alpha.28 Jul 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-alpha.2 -->
What's Changed
Breaking Changes ๐
- Upgrade swc_core from 0.95 to 0.96 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7069
- refactor!: use swc_plugin_prefresh instead of builtin swc plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7069
Exciting New Features ๐
- feat: support webpackInclude and webpackExclude by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7055
Bug Fixes ๐
- fix: detect magic comments around expr by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7047
- fix: truncateArgs is not a function by @SyMind in https://github.com/web-infra-dev/rspack/pull/7052
- fix(core): migrate to rspack_resolver by @hardfist in https://github.com/web-infra-dev/rspack/pull/7063
- fix: zod is pre-bundled twice by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7064
- fix: magic comment warning by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7056
- fix: revert detect statement level sequence expression by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7071
Document Updates ๐
- docs: add compare with parcel section by @hardfist in https://github.com/web-infra-dev/rspack/pull/7035
Other Changes
- chore(lite-tapable): clean up temp/api.md by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7048
- chore: nightly release upload webpack-test metric data by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7051
- chore: nightly release add write contents permission by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7053
- chore: add provenance option to pnpm publish by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7054
- chore: migrate lint to biome by @hardfist in https://github.com/web-infra-dev/rspack/pull/7061
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.1...v1.0.0-alpha.2
- 1.0.0-alpha.14 Jul 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-alpha.1 -->
What's Changed
Breaking Changes ๐
- refactor!: move global trace export to experiments by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7019
Performance Improvements โก
- perf: make picking concatenable modules parallel by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7003
Exciting New Features ๐
- feat: enable lightning css minimizer error recovery by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6995
- feat: support nmf resolve hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6998
- feat: support splitChunkSizes type by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6989
- feat: refresh overlay by @JiangWeixian in https://github.com/web-infra-dev/rspack/pull/6161
- feat: align webpack target and stats api by @SyMind in https://github.com/web-infra-dev/rspack/pull/7027
- feat: support fetch priority by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7029
Bug Fixes ๐
- fix(config): allow entry function to return promise by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6975
- fix: use max_entrypoint_size in add_entrypoints_over_size_limit_warning by @escaton in https://github.com/web-infra-dev/rspack/pull/6923
- fix: experiments css exports convention tree shaking by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6997
- fix: align source name conflict handling by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6993
- fix: should not generate pure expression if test is failed by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7014
- fix: use lite-tapable for enhanced-resolve by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7021
- fix: fix npm script in window by @daydayhappychao in https://github.com/web-infra-dev/rspack/pull/5164
- fix: pnpm install failed in ci by @SyMind in https://github.com/web-infra-dev/rspack/pull/7036
- fix: wrong cjs exports type caused unexpected exports presence by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7028
- fix: add warning for context module flag g and y by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7044
- fix: deduplicate extracted comments by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7040
Document Updates ๐
- docs: announcing Rspack v1.0 alpha by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6945
- docs: remove invalid OG image by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6982
- docs: add doc about switch back to SwcCssMinimizerRspackPlugin by @hardfist in https://github.com/web-infra-dev/rspack/pull/6983
- docs: deduplicate plugin support status list by @xc2 in https://github.com/web-infra-dev/rspack/pull/6988
- docs: complete the module methods by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6999
- docs: module variables by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6980
- docs: add specifics for api meta by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7002
- docs: add Module Federation to features list by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7011
- docs: improve externals plugin doc by @SyMind in https://github.com/web-infra-dev/rspack/pull/7009
- docs: add prefetch&preload modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7010
- docs: default value in node config by @SyMind in https://github.com/web-infra-dev/rspack/pull/7015
- docs: update compilation hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7018
- docs: add fetch priority by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7037
Other Changes
- refactor: move test dirs to tests by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6973
- test: stable stage-0-factorize test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6981
- refactor: resolve nodejs 22 deprecation warning by @xc2 in https://github.com/web-infra-dev/rspack/pull/6987
- chore: disable renovate update for swc by @hardfist in https://github.com/web-infra-dev/rspack/pull/6991
- chore: add deprecated notice for rspack-plugin-minify by @hardfist in https://github.com/web-infra-dev/rspack/pull/6992
- chore: fix renovate config by @xc2 in https://github.com/web-infra-dev/rspack/pull/6994
- refactor: extract lite tapable by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7000
- chore(module-federation): update @module-federation/runtime-tools to 0.2.3 version by @zhoushaw in https://github.com/web-infra-dev/rspack/pull/7025
- test: enable webpack cjs-treeshaking reexport cases by @xc2 in https://github.com/web-infra-dev/rspack/pull/7017
- chore(readme): remove underlines between badges by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/7024
- chore: release force use github runner by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7038
- test: enable cases/context/issue-10969 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7041
- chore: release run macos test when arch match by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/7046
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.0...v1.0.0-alpha.1
- 1.0.0-alpha.028 Jun 2024pre-release
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-alpha.0 -->
What's Changed
See ๐ Announcing Rspack v1.0 Alpha for more details
Breaking Changes ๐
- fix!: change default value of css to false, align with webpack by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/6910
- feat!: enable lightning css minimizer as default css minimizer by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6960
- feat: deprecate JavaScript API (part 2) by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6859
- fix: compilation errors and warnings should be
RspackErrorby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6900 - feat: upgrade swc to latest version by @hardfist in https://github.com/web-infra-dev/rspack/pull/6887
- refactor: remove profile integration timestamp by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6947
- feat: remove fields of
SwcJsMinimizerRspackPluginOptionsby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6950 - fix!: align optimization.moduleIds and optimization.chunkIds when mode=none by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6956
- feat!: remove output.amdContainer from config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6958
- feat!: revert default values of SwcJsMinimizer by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6970
- fix!: set default value of concatenateModules to true in production mode by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/6959
- refactor!: remove resolve tsConfigPath by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6872
- fix!: align devtool default value by @SyMind in https://github.com/web-infra-dev/rspack/pull/6904
Performance Improvements โก
- perf(rspack_plugin_javascript): use Rayon to parse modules parallelly by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6864
Exciting New Features ๐
- feat(napi): support js chunk hash hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6853
- feat(napi): compilation chunk hash hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6858
- feat: root module is less prone to be wrapped in IIFE by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6697
- feat: CopyRspackPlugin support function
tooption by @9aoy in https://github.com/web-infra-dev/rspack/pull/6866 - feat: remove styled-components, emotion and relay in builtin swc-loader by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6862
- feat: align split-chunks stats by @SyMind in https://github.com/web-infra-dev/rspack/pull/6847
- feat: generating provenance statements by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6896
- feat: add
factoryMetatoJsModuleand optimizeInnerGraphPluginfor variable decl with iife by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6888 - feat: simple custom worker syntax by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6899
- feat: add nwjs target to rspack config by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6880
- feat: add build unique id for detecting by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6865
- feat: encode filename in EvalDevToolModulePlugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/6903
- feat: add stats.module.dependent by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6913
- feat(cli): defineConfig support all types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6911
- feat: add nwjs external preset by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6907
- feat: custom worker syntax for worklet by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6916
- feat: support deep AST parsing in debug by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6919
- feat: add idHints and hash of stats.chunk by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6920
- feat: support nested webpack_exports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6930
- feat: fully support EvalSourceMapDevToolPlugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/6933
- feat: support use data uri with inline loaders by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6939
- feat(create-rspack): improve the templates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6940
- feat: add contextInfo on resolveData by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6948
- feat: align stats.assets[].info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6951
- feat: optimize filename function diagnostic by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6953
- feat(cli): add --profile to enable stats module profile by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6957
- feat: stats origin moduleid by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6955
- feat: align stats chunk group by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6961
Bug Fixes ๐
- fix: ci wrong in github runner by @SyMind in https://github.com/web-infra-dev/rspack/pull/6852
- fix: export default when environment supports const by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6861
- fix: pre walk class blocks by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6867
- fix: should not eval exports in harmony by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6883
- fix: clean up dependencies and types for emotion / relay by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6892
- fix: fix type of CssExtractRspackPluginOptions.{filename,chunkFilename} by @xc2 in https://github.com/web-infra-dev/rspack/pull/6882
- fix: missing bailout reason after introducing css extract plugin by @xc2 in https://github.com/web-infra-dev/rspack/pull/6875
- fix: sources in source map when use EvalSourceMapDevToolPlugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/6901
- fix: CopyRspackPlugin transform option type by @9aoy in https://github.com/web-infra-dev/rspack/pull/6908
- fix: devtool plugin cache conflict !macos by @SyMind in https://github.com/web-infra-dev/rspack/pull/6912
- fix: fix release build by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6921
- fix: use entrypoint.options.runtime as key for chunk_graph.runtime_ids map if possible by @escaton in https://github.com/web-infra-dev/rspack/pull/6928
- fix: context passed into the
ModuleFactoryis not correct by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6946 - fix!: align webpack defaults by @SyMind in https://github.com/web-infra-dev/rspack/pull/6949
- fix: sources types by @SyMind in https://github.com/web-infra-dev/rspack/pull/6944
- fix: should not using single line match in data url regex by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/6952
- fix: fix duplicated harmony exports with named exports and re-exports star by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6962
Document Updates ๐
- docs: fixed typo on compatibility list header by @ebektasiadis in https://github.com/web-infra-dev/rspack/pull/6886
- docs: fix rspack exports in javascript-api.mdx by @sudoaugustin in https://github.com/web-infra-dev/rspack/pull/6889
- docs: fix rspack exports in zh javascript-api.mdx by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6893
- docs: explain
VariableInfoby @bvanjoi in https://github.com/web-infra-dev/rspack/pull/6914 - docs: polish up guide docs by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6922
- docs: review devtool and entry config docs by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/6917
- docs: improve webpack migration by @SyMind in https://github.com/web-infra-dev/rspack/pull/6918
- docs: fix license badge and add node badge by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6929
- docs(config): temporary fix for mdx display bug by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6932
- docs: add stats data by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6937
- docs: describe stats data structure with ts types by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/6941
- docs: polish up external config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/6942
- docs(contributing): breaking change PR format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6969
- docs: update assets URLs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6972
- docs: upgrade latest discord invitation link by @SoonIter in https://github.com/web-infra-dev/rspack/pull/6977
- docs: use of nightly/canary version and install-rspack script by @SoonIter in https://github.com/web-infra-dev/rspack/pull/6974
Other Changes
- chore(deps): update crates (major) by @renovate in https://github.com/web-infra-dev/rspack/pull/6855
- chore: remove old tree shaking code by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6884
- refactor: worker parser plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6881
- revert: chore(deps): update crates (major) (#6855) by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6894
- test: fix using HotSnapshotProcessor in webpack by @colinaaa in https://github.com/web-infra-dev/rspack/pull/6885
- chore: refactor rspack_plugin_devtool by @SyMind in https://github.com/web-infra-dev/rspack/pull/6897
- chore: optimize profile dir creation by @xc2 in https://github.com/web-infra-dev/rspack/pull/6879
- chore(release): rename package canary name by @SoonIter in https://github.com/web-infra-dev/rspack/pull/6906
- chore: clean up unused dev dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6924
- chore: sanitize file paths by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6931
- chore: remove unused benchcases folder by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6936
- refactor: improve code style in concate module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/6791
- chore(workflow): should allow alpha npm tag by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6976
- chore(workflow): fix permissions for prod release by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6979
New Contributors
- @ebektasiadis made their first contribution in https://github.com/web-infra-dev/rspack/pull/6886
- @sudoaugustin made their first contribution in https://github.com/web-infra-dev/rspack/pull/6889
- @escaton made their first contribution in https://github.com/web-infra-dev/rspack/pull/6928
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.5...v1.0.0-alpha.0
- 0.7.6-canary-fd6c40d-2024091809354218 Sept 2024pre-release
Nothing published for this version
- 0.7.6-canary-f272bd8-2024062512234625 Jun 2024pre-release
Nothing published for this version
- 0.7.6-canary-7121b83-202407090646019 Jul 2024pre-release
Nothing published for this version
- 0.7.6-canary-1a0d77d-2024062714390427 Jun 2024pre-release
Nothing published for this version
- 0.7.525 Jun 2024
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v0.x -->
What's Changed
Bug Fixes ๐
- fix: should not eval exports in harmony by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6883
- fix: pre walk class blocks by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/6867
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.4...v0.7.5
- 0.7.5-canary-d73b4fa-2024062100441721 Jun 2024pre-release
Nothing published for this version
- 0.7.5-canary-c7fe67a-2024062107555921 Jun 2024pre-release
Nothing published for this version
- 0.7.5-canary-b89dbb3-2024062018293220 Jun 2024pre-release
Nothing published for this version
- 0.7.5-canary-9ec73cf-2024062009252220 Jun 2024pre-release
Nothing published for this version
- 0.7.5-canary-910259c-2024062400445524 Jun 2024pre-release
Nothing published for this version
- 0.7.5-canary-910259c-2024062300450223 Jun 2024pre-release
Nothing published for this version
- 0.7.5-canary-910259c-2024062200433422 Jun 2024pre-release
Nothing published for this version