v1.3.8
Rspack now experimentally exposes some SWC JavaScript APIs via rspack.experiments.swc
. This allows you to call SWC methods like transform
or minify
without installing the additional @swc/core package.
See SWC API for more details.
- feat(incremental): silent warning and add presets by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10175
- feat: add SWC transform and minify support by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/10201
- feat: support
origin.loc
on chunkgroup by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10188 - feat: support regexp and function of
output.clean
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10207 - feat(incremental): add more tracing for debugging by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10214
- fix: print rspack version instead of webpack's (fix #10189) by @tmadeira in https://github.com/web-infra-dev/rspack/pull/10190
- fix: slash in char match pattern of magic comments by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10187
- fix: CI mulit rust cache file with the same cache key by @stormslowly in https://github.com/web-infra-dev/rspack/pull/10200
- fix: compiler js object cannot be gc by @SyMind in https://github.com/web-infra-dev/rspack/pull/9685
- fix: dead loop of circular dependency plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10212
- fix(core): temporarily disable lightningcss warning by @hardfist in https://github.com/web-infra-dev/rspack/pull/10211
- fix(core): add tracing for native fs by @hardfist in https://github.com/web-infra-dev/rspack/pull/10219
- fix: missing context depenendency by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10221
- fix: copy zod types instead of bundling them by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/10222
- docs: add
require.resolveWeak
module method by @9aoy in https://github.com/web-infra-dev/rspack/pull/10203 - docs: improve CSS Modules documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10209
- docs: add notice about lightningcss by @hardfist in https://github.com/web-infra-dev/rspack/pull/10210
- test: should not report on wrong case when error by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10185
- chore: release v1.3.7 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10182
- refactor: integrate swc api into rspack_javascript_compiler by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/10186
- chore(deps): update dependency @rspack/plugin-react-refresh to ^1.4.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/10192
- chore(deps): update dependency axios to ^1.9.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/10193
- chore(deps): update typescript and @microsoft/api-extractor by @renovate in https://github.com/web-infra-dev/rspack/pull/10194
- chore(deps): update dependency table to v6 by @renovate in https://github.com/web-infra-dev/rspack/pull/10197
- chore(deps): update webpack-merge to v6 (major) by @renovate in https://github.com/web-infra-dev/rspack/pull/10198
- test: add test case of issue #10195 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10202
- chore(deps): remove unused webpack-cli by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10199
- test: clean full snapshoted stats api test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10204
- chore(deps): update pnpm to v10 by @renovate in https://github.com/web-infra-dev/rspack/pull/10092
- refactor: merge rust check and test into one require check job require condtion by @stormslowly in https://github.com/web-infra-dev/rspack/pull/10216
- chore(ci): test self hosted by @stormslowly in https://github.com/web-infra-dev/rspack/pull/10148
- @tmadeira made their first contribution in https://github.com/web-infra-dev/rspack/pull/10190
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.7...v1.3.8
v1.3.7
The rspack.dev now provides llms.txt to help LLMs better understand Rspack:
- perf: use
Vec::with_capacity
for hooks and plugins by @CPunisher in https://github.com/web-infra-dev/rspack/pull/10178
- feat: persistent cache snapshot expose is_hot_start by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/10166
- feat: custom prefix for lazy compilation by @dgaponov in https://github.com/web-infra-dev/rspack/pull/10147
- fix: should rebuild css module when rebuild css extract entry by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10124
- fix: plugin compilation hooks leak by @quininer in https://github.com/web-infra-dev/rspack/pull/10137
- fix(core): add more trace for loaders by @hardfist in https://github.com/web-infra-dev/rspack/pull/10139
- fix: panic when factorize failed in module executor by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10136
- fix(core): enable tracing for hook by default except in make stage by @hardfist in https://github.com/web-infra-dev/rspack/pull/10141
- fix(storage): should flush writer when flushing file mtime by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10143
- fix: storage validate hash with content by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/10101
- fix: multiple runtime keys broke filename in runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10144
- fix: call
compiler.close
when having errors by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10154 - fix: pass
null
to additional data of loader context by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10155 - fix: support license plugin when enable concatenated by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10158
- fix(parallel-loader): should not pass options for which loaders are not set to
parallel
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/10164 - fix: circularDependencyRspackPlugin should check all cycle by @fireairforce in https://github.com/web-infra-dev/rspack/pull/10163
- fix: should regenerate runtime chunk hash when using get chunk filename runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10167
- fix: ignore parsing errors on CSS modules from lightningcss-loader by @SyMind in https://github.com/web-infra-dev/rspack/pull/10172
- fix: truncate width into
u16::MAX
for graphical reporter by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/10180 - fix: Vue CSS pseudo class warning in lightningcss by @SyMind in https://github.com/web-infra-dev/rspack/pull/10184
- docs(llms): bump to Rspress@2.0.0-beta.1 and add llms.txt by @SoonIter in https://github.com/web-infra-dev/rspack/pull/10157
- docs: update config merging guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10159
- docs(llms): bump to Rspress@2.0.0-beta.2 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/10165
- docs: fix grammar in rspack-next-partner.mdx by @tlund101 in https://github.com/web-infra-dev/rspack/pull/10169
- docs(llms.txt): add more description by @SoonIter in https://github.com/web-infra-dev/rspack/pull/10181
- chore: enable more webpack watch cases by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10128
- refactor: adjust circularDependencyRspackPlugin compilation API by @fireairforce in https://github.com/web-infra-dev/rspack/pull/10006
- chore: release v1.3.6 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/10116
- chore(deps): update dependency @rstack-dev/doc-ui to v1.8.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/10152
- refactor: remove dead_code and use spawn_blocking for fast_set by @hardfist in https://github.com/web-infra-dev/rspack/pull/10151
- chore: disable more hook tracing by @hardfist in https://github.com/web-infra-dev/rspack/pull/10156
- refactor: dependency range of remain dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10160
- ci: close inactive issues with
need more info
orawaiting more feedback
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10171 - refactor: CI by @stormslowly in https://github.com/web-infra-dev/rspack/pull/10135
- refactor(incremental): disable passes only for current rebuild by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10145
- chore(ci): refactor incremental causes ci tests failed by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10174
- refactor(core): remove browserslist feature of lightningcss by @hardfist in https://github.com/web-infra-dev/rspack/pull/10173
- chore(ci): fix job if condition by @stormslowly in https://github.com/web-infra-dev/rspack/pull/10176
- @dgaponov made their first contribution in https://github.com/web-infra-dev/rspack/pull/10147
- @tlund101 made their first contribution in https://github.com/web-infra-dev/rspack/pull/10169
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.6...v1.3.7
v1.3.6
- perf(build): custom Rslib minify options for
@rspack/core
by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/10048 - perf(hash): avoid heap allocations in hash by @quininer in https://github.com/web-infra-dev/rspack/pull/10060
- perf: trivial static variable improve by @quininer in https://github.com/web-infra-dev/rspack/pull/10113
- perf(core): remove json-parse-even-better-errors dependency by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10122
- perf: define Rspack version to reduce require calls by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10121
- feat: rsdoctor module object add issuerPath property by @easy1090 in https://github.com/web-infra-dev/rspack/pull/10007
- feat: persistent cache snapshot save file hash by default by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/10050
- feat: asset info support symbol key by @SyMind in https://github.com/web-infra-dev/rspack/pull/9871
- feat(core): remove otel tracing support by @hardfist in https://github.com/web-infra-dev/rspack/pull/10067
- feat: support svg-chunk-webpack-plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10066
- feat: swc loader support emitAssertForImportAttributes config by @fireairforce in https://github.com/web-infra-dev/rspack/pull/9826
- feat: improve lightningcss minimize warning by @SyMind in https://github.com/web-infra-dev/rspack/pull/10103
- fix(incremental): chunk id change should affect associate chunk by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10032
- fix(wasm): shutdown async runtime and thread workers after finishing by @CPunisher in https://github.com/web-infra-dev/rspack/pull/9895
- fix: remove progressbar instance when closing compiler by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10034
- fix: should not rename webpack_require if declared in current scope by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/10016
- fix: should rename webpack_require pat in parameters by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/10036
- fix: failed to resolve tinypool when using parallel loader by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10040
- fix: require with string raw by @SyMind in https://github.com/web-infra-dev/rspack/pull/10047
- fix: dev server types by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10038
- fix: async entry should have unique runtime by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/10049
- fix(incremental): revoked module shouldn't exist in built modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10051
- fix: conflict hot update main content warning by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10059
- fix: should remove module napi_ref after finish make by @SyMind in https://github.com/web-infra-dev/rspack/pull/10062
- fix: should validate options of builtin swc loader by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10055
- fix: context dependency with complex require by @SyMind in https://github.com/web-infra-dev/rspack/pull/10028
- fix: import module entry dependency resolve options by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10070
- fix(cli): remove JSCPU & LOGGING support by @hardfist in https://github.com/web-infra-dev/rspack/pull/10071
- fix: allow lazyCompilation.serverUrl to end with slash by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10074
- fix: should have correct interop for default exportsType by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/10069
- fix: ThreadsafeOneShotRef prevents event loop destroy by @SyMind in https://github.com/web-infra-dev/rspack/pull/10082
- fix: allow assignment of
require
identifier by @inottn in https://github.com/web-infra-dev/rspack/pull/10093 - fix(cli): simplify RSPACK_PROFILE by @hardfist in https://github.com/web-infra-dev/rspack/pull/10072
- fix: compilation.chuks not corresponds to a unique jsobect by @SyMind in https://github.com/web-infra-dev/rspack/pull/10098
- fix: hmr should not include unchanged module when adding a new runtime by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10061
- fix: comma in regex value of magic comments by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10100
- fix(wasm): add wasm fallback in
checkVersion
by @CPunisher in https://github.com/web-infra-dev/rspack/pull/10097 - fix(diagnostic): fix excessively large width causing
format_args
panics by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/10109 - fix(pnp): resolved wrong description file in yarn pnp mode by @stormslowly in https://github.com/web-infra-dev/rspack/pull/10111
- fix: use evaluate expression to extract hmr accept dependencies by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10107
- fix: compilation chunks for each is undefined by @SyMind in https://github.com/web-infra-dev/rspack/pull/10112
- fix: should skip rebuilding chunk graph if only specifier order change by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/10104
- fix(incremental): fallback when chunk depend on full hash by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10110
- fix(core): fix async event tracing showing in perfetto by @hardfist in https://github.com/web-infra-dev/rspack/pull/10119
- docs: enhance Rsdoctor analysis guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10035
- docs: lightningcss errorRecovery option by @SyMind in https://github.com/web-infra-dev/rspack/pull/10077
- docs: rewrite tracing section by @hardfist in https://github.com/web-infra-dev/rspack/pull/10099
- docs: fix tracing title by @hardfist in https://github.com/web-infra-dev/rspack/pull/10106
- docs: update banner image by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10114
- docs: add
optimization.removeAvailableModules
config by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10115
- chore: release v1.3.5 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/10031
- chore: bump swc version to 22.4.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/10033
- chore: use Rslib to bundle
@rspack/core
by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/9899 - test: cacheCases update dynamic file by write by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/10039
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9918
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/10042
- chore(deps): update dependency @module-federation/runtime-tools to v0.12.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/10046
- chore(deps): update dependency @arco-design/web-react to ^2.66.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/10045
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/10043
- chore: keep debugger in rspack bundle by @hardfist in https://github.com/web-infra-dev/rspack/pull/10054
- ci: lock cargo shear version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/10052
- chore: merge rust & js loader & CPU Profiling together by @hardfist in https://github.com/web-infra-dev/rspack/pull/10009
- chore(deps): update dependency webpack to v5.99.5 by @renovate in https://github.com/web-infra-dev/rspack/pull/10002
- revert: lightningcss loader error recovery default value by @SyMind in https://github.com/web-infra-dev/rspack/pull/10076
- Add minSizeReduction to SplitChunks CacheGroup by @kbruccoleri in https://github.com/web-infra-dev/rspack/pull/10073
- chore(deps): update rspress to v2.0.0-alpha.12 by @renovate in https://github.com/web-infra-dev/rspack/pull/10087
- chore(deps): update dependency jsdom to ^26.1.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/10090
- chore(deps): update dependency mime-types to v3 by @renovate in https://github.com/web-infra-dev/rspack/pull/10091
- chore(deps): update yarn to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/10096
- chore(deps): update github-actions (major) by @renovate in https://github.com/web-infra-dev/rspack/pull/10095
- chore(deps): update react to ^19.1.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/10094
- refactor: improve render external module for module output by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/10080
- chore: add tracing for hook call in define_hook macro by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10064
- test: fix Jest haste module naming collision by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10105
- chore: fork tracing-chrome for better support for perfetto by @hardfist in https://github.com/web-infra-dev/rspack/pull/10102
- chore: add back wasm build check by @stormslowly in https://github.com/web-infra-dev/rspack/pull/10053
- refactor(incremental): use ChunkSetHashes for chunk render by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10117
- chore: disable hook macro tracing by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10120
- ci: add more JS extensions to workflow filters and format script by @stormslowly in https://github.com/web-infra-dev/rspack/pull/10123
- Revert "refactor: improve render external module for module output" by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/10126
- chore(deps): bump Rslib 0.6.6 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/10129
- chore(deps): update dependency @module-federation/runtime-tools to v0.13.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/10133
- chore(deps): update rspress to v2.0.0-beta.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/10132
- chore(deps): update dependency webpack to v5.99.6 by @renovate in https://github.com/web-infra-dev/rspack/pull/10130
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/10131
- chore(deps): bump Rslib 0.6.7 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/10134
- @kbruccoleri made their first contribution in https://github.com/web-infra-dev/rspack/pull/10073
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.5...v1.3.6
v1.3.5
We’re excited to introduce next-rspack, a community-driven plugin bringing direct Rspack support to Next.js.
See the Rspack joins the Next.js ecosystem blog for details.
- perf: js module loaders getter by @SyMind in https://github.com/web-infra-dev/rspack/pull/9955
- feat: adapter rspack-resolver async api by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9747
- feat: rspack cacheable noop feature by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9990
- feat: resolver restriction support regex by @SyMind in https://github.com/web-infra-dev/rspack/pull/9885
- fix: stablelize order of concated modules by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9968
- fix: jsonpChunksLoadingWithCallback code format by @1714080902120 in https://github.com/web-infra-dev/rspack/pull/9923
- fix: lightningcss loader report error by default by @SyMind in https://github.com/web-infra-dev/rspack/pull/9979
- fix: external with properties array list in module format by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9980
- fix: external module to pass webpack test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9981
- fix: hmr wasm filename by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10010
- fix: sometimes entry chunk hash not changes with full hash runtime modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9986
- fix(wasm): align trait methods for
native_fs
by @CPunisher in https://github.com/web-infra-dev/rspack/pull/9999 - fix: incorrect type signatures on Hash's digest and update methods by @hulin32 in https://github.com/web-infra-dev/rspack/pull/9608
- fix: error when load binding multiple times by @SyMind in https://github.com/web-infra-dev/rspack/pull/10018
- fix(incremental): dynamic add entries with infer async modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/10019
- fix: covert optional import meta property to
undefined
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10030 - fix: worker alias with module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/10021
- docs: add rspack & next.js partner annoucement by @hardfist in https://github.com/web-infra-dev/rspack/pull/9962
- docs: update blog tile and description on the list page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9969
- docs: add next.js guide to sidebar by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9970
- docs: translate Next.js blog to Chinese by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9974
- docs: improve clarity in documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9977
- docs: add dependency in glossary by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9972
- docs: add a standalone ecosystem page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/10004
- ci: split reusable-build.yml by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9941
- chore: release v1.3.4 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9950
- refactor: dynamic templates of javascript esm dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9945
- refactor: dynamic templates of JavaScript amd and cjs dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9948
- refactor: dynamic templates of javascript remain depenendencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9958
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9951
- refactor: dynamic templates of all dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9960
- refactor: clean dependency template code by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9961
- test: not to print unnecessary message when testing by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9963
- ci: add lynx-stack to ecosystem-ci by @colinaaa in https://github.com/web-infra-dev/rspack/pull/9964
- chore: use async trace style for chrome tracing by @hardfist in https://github.com/web-infra-dev/rspack/pull/9965
- chore: remove unused scripts by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9973
- ci: update lynx infra artifact action by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9975
- ci: use node v22 in ecosystem-ci by @colinaaa in https://github.com/web-infra-dev/rspack/pull/9966
- chore: use RefCell instead of Mutex in thread_local! by @quininer in https://github.com/web-infra-dev/rspack/pull/9978
- chore: improve tracing by @hardfist in https://github.com/web-infra-dev/rspack/pull/9989
- refactor: remove useless code by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9992
- chore(deps): update dependency @rspack/plugin-react-refresh to ^1.2.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/10000
- chore(deps): update dependency prebundle to ^1.3.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/10001
- chore: add more tracing data by @hardfist in https://github.com/web-infra-dev/rspack/pull/9994
- chore(deps): update rspress to 2.0.0-alpha.11 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/10027
- @1714080902120 made their first contribution in https://github.com/web-infra-dev/rspack/pull/9923
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.4...v1.3.5
v1.3.4
- perf: normal module readonly fields by @SyMind in https://github.com/web-infra-dev/rspack/pull/9949
- fix: generated name for splitted chunk by @SyMind in https://github.com/web-infra-dev/rspack/pull/9944
- docs: redirect rspack.org to rspack.dev by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9937
- docs: Document content display error in 'experiments.mdx' by @lzxb in https://github.com/web-infra-dev/rspack/pull/9942
- refactor: clean dependency template code by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9934
- ci: cache support self hosted runner by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9761
- chore: release v1.3.3 by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9935
- chore: bench collect imported identifiers by @SyMind in https://github.com/web-infra-dev/rspack/pull/9897
- refactor: add dynamic dependency template implementation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9924
- refactor: fix dependency templates not found error cross temp compilation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9943
- ci: rustup install clippy by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9946
- ci: fix rustup download target failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9957
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.3...v1.3.4
v1.3.3
- feat(wasm): limit tokio
max_blocking_threads
to 1 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/9909
- fix: should walk for worker args by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9901
- fix(deps):
tinypool
not being able to run on older node versions by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9925 - fix: injecting custom runtime globals in runtimeRequirementInTree by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9930
- fix(modern-module): leave non exist dependency to throw on resolve by @fi3ework in https://github.com/web-infra-dev/rspack/pull/9863
- docs: fix the incorrect parameters used when creating the DevServer by @Gehbt in https://github.com/web-infra-dev/rspack/pull/9919
- docs: improve Next.js guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9920
- chore(deps): update dependency @arco-design/web-react to ^2.66.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9903
- chore(deps): update dependency @rspack/plugin-react-refresh to ^1.1.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9905
- chore(deps): update types by @renovate in https://github.com/web-infra-dev/rspack/pull/9908
- chore(deps): update dependency @emnapi/core to ^1.4.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9904
- chore(deps): update dependency mermaid to ^11.6.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9906
- chore(deps): update dependency zx to v8.5.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9907
- chore(deps): update dependency emnapi to ^1.4.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9912
- chore(deps): update dependency csv-to-markdown-table to ^1.5.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9914
- chore(deps): update dependency create-rstack to v1.4.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9911
- chore: Upgrade Rust to nightly of 1.86.0 release date by @andersk in https://github.com/web-infra-dev/rspack/pull/9818
- chore(deps): update dependency react-refresh to ^0.17.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9913
- chore(deps): update dependency vitest to ^3.1.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9917
- chore(deps): update dependency ts-jest to v29.3.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9916
- chore(deps): update dependency less to v4.3.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9915
- refactor: remove unused
AsDependency
trait by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9921 - chore: rollback rust to nightly 2025-03-26 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9926
- chore: remove unnecessary linked project by @hardfist in https://github.com/web-infra-dev/rspack/pull/9927
- chore(deps): update rust crate tokio to v1.43.1 [security] by @renovate in https://github.com/web-infra-dev/rspack/pull/9932
- test: use errors.js to test expected error by @fi3ework in https://github.com/web-infra-dev/rspack/pull/9936
- @Gehbt made their first contribution in https://github.com/web-infra-dev/rspack/pull/9919
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.2...v1.3.3
v1.3.2
- feat(loader-parallel): support more
LoaderContext
APIs in parallel loader by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9884 - feat(loader-parallel): support
LoaderContext.fs
asnode:fs
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9888 - feat: support rspack wasi with node.js by @CPunisher in https://github.com/web-infra-dev/rspack/pull/9872
- fix: should ensure cache exist when incremental rebuild chunk graph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9886
- fix: more stable named chunk ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9893
- fix: multiple runtimeRequirementInTree js hook call by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9898
- fix: should merge chunkCreateRoot instead of merge chunks later by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9892
- docs: invite @CPunisher to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9882
- docs: add basic guide for Next.js by @SyMind in https://github.com/web-infra-dev/rspack/pull/9894
- chore(deps): update babel to v7.27.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9878
- chore(deps): update rspress to v2.0.0-alpha.8 by @renovate in https://github.com/web-infra-dev/rspack/pull/9875
- refactor: convert result with message by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9866
- test(loader-parallel): test
parallel-option
would only recievetrue
in parallel mode by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9883 - chore(deps): update dependency webpack-dev-server to v5.2.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9874
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9794
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.1...v1.3.2
v1.3.1
Added a way to run JavaScript loader in parallel driven by worker_threads
, using the max thread available on the OS.
This feature is still experimental. To enable parallelism, set Rule.use.parallel = true
and experiments.parallelLoader = true
:
module.exports = {
module: {
rules: [
{
test: /\.less$/,
use: [
{
loader: "less-loader",
+ parallel: true,
options: { ... }
}
]
type: "css"
}
]
},
experiments: {
css: true,
+ parallelLoader: true
}
}
In big projects like 100x antd.less
, we got 2.26x performance boost. (Tested on Apple M2 Max, 64G)
Related PR: https://github.com/web-infra-dev/rspack/pull/9807
- fix
No unique code generation entry for unspecified runtime
panic when using withdevtool: 'eval-source-map'
. Related issue: https://github.com/web-infra-dev/rspack/issues/9837 - fix
should have best match
panic when using withrspack.CssExtractRspackPlugin
. Related issue: https://github.com/web-infra-dev/rspack/issues/9833
- feat: support experimental loader parallelism by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9807
- feat: support passing
PathBuf
and&Path
toContext
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9848
- fix: make Compilation check logs clearer by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9853
- fix: should remove all sub chunks if chunk is removed by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9845
- fix: add return statement for dynamic importing script externals by @Leonewu in https://github.com/web-infra-dev/rspack/pull/9842
- fix(deps): update @rspack/dev-server to v1.1.1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9860
- fix: eval source map panic at getting codegen results by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9862
- docs: add Rspack 1.3 release blog by @SyMind in https://github.com/web-infra-dev/rspack/pull/9817
- docs: add banner to 1.3 blog by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9830
- docs: fix lynx link in en blog by @9aoy in https://github.com/web-infra-dev/rspack/pull/9831
- chore: release v1.3.0 by @SyMind in https://github.com/web-infra-dev/rspack/pull/9823
- chore: improve tracing support by @hardfist in https://github.com/web-infra-dev/rspack/pull/9825
- chore: bump napi-build 2.1.4 -> 2.1.6 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/9844
- chore: adjust defaultRustTraceFilter to info by @hardfist in https://github.com/web-infra-dev/rspack/pull/9843
- test(loader-parallel): disable cases that rely on
import()
in node 16 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9846 - ci: alpine apk use stable release branch by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9854
- chore: bump swc to v18.0.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9850
- chore(deps): update dependency @rslib/core to v0.6.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9857
- test: import from @rspack/test-tools instead of using relative paths by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9852
- chore(deps): update dependency @rsbuild/plugin-sass to ^1.3.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9856
- refactor: convert errors and results by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9847
- chore: bump napi 3.0.0-alpha.24 -> 3.0.0-alpha.33 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/9855
- refactor: improve storage error and result by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9859
- test: fix cjs js api tests by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/9868
- test: fix unexpected missing errors and warnings by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9869
- @Leonewu made their first contribution in https://github.com/web-infra-dev/rspack/pull/9842
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.0...v1.3.1
v1.3.0
See Announcing Rspack 1.3 for more details.
- feat(deps)!: update SWC version to 16.5.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9671
- perf: remove useless iterator in new code splitting and some allocations by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9821
- feat: support module subtype in js side by @SyMind in https://github.com/web-infra-dev/rspack/pull/9613
- feat: implement
module.generator.json.JSONParse
by @colinaaa in https://github.com/web-infra-dev/rspack/pull/9666 - feat: support read
NormalModule.loaders
by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9664 - feat: incremental for new code splitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9667
- feat: add extends property in config options by @hulin32 in https://github.com/web-infra-dev/rspack/pull/9617
- feat: externals getResolve callback third argument by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9681
- feat: js api support instranceof AsyncDependenciesBlock by @SyMind in https://github.com/web-infra-dev/rspack/pull/9661
- feat: add file permission bits on copy by @hulin32 in https://github.com/web-infra-dev/rspack/pull/9650
- feat(copyRspackPlugin): align transform api with webpack plugin by @fireairforce in https://github.com/web-infra-dev/rspack/pull/9714
- feat: introduce par_iter_then_collect by @quininer in https://github.com/web-infra-dev/rspack/pull/9736
- feat: implement CircularDependencyRspackPlugin by @faultyserver in https://github.com/web-infra-dev/rspack/pull/8876
- feat!: introduce lazy compilation middleware by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9515
- feat: support experiments build http by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/9741
- feat: enable parallel code splitting by default by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9059
- feat: support alias false by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9809
- feat(compiler-builder): support
BuilderError
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9627
- fix(commonjs-static): export unprovided variables by @fi3ework in https://github.com/web-infra-dev/rspack/pull/9630
- fix: define with recursion value by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9646
- fix: revoke dependency clean dependency at module and block by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9638
- fix(core): use future_scope to run parallel future by @hardfist in https://github.com/web-infra-dev/rspack/pull/9637
- fix: remove outdata compilation error by @SyMind in https://github.com/web-infra-dev/rspack/pull/9697
- fix: rename loader item request to loader by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9704
- fix: should convert diagnostic.loc to string by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9695
- fix: napi register module twice by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9648
- fix: improve diagnostic messages for Subresource Integrity plugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9725
- fix(module_federation_runtime_plugin): add support for root output dir by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/9620
- fix(rspack_plugin_mf): Track all referenced chunks by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/9707
- fix: source map line mapping bug by @SyMind in https://github.com/web-infra-dev/rspack/pull/9712
- fix: getter and setter type in module subtype by @SyMind in https://github.com/web-infra-dev/rspack/pull/9772
- fix(css): local_names may be None by @inottn in https://github.com/web-infra-dev/rspack/pull/9748
- fix: array in asset info by @SyMind in https://github.com/web-infra-dev/rspack/pull/9774
- fix: import-assertion test case should not run in node 16 by @SyMind in https://github.com/web-infra-dev/rspack/pull/9777
- fix: optimize circular-dependency-check log by @fireairforce in https://github.com/web-infra-dev/rspack/pull/9776
- fix(modern-module): correct count non export star connections by @fi3ework in https://github.com/web-infra-dev/rspack/pull/9784
- fix:
getModuleId
should return number for deterministic moduleIds by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9785 - fix: compilation.*_dependencies iterator ignore added items when sync call by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9782
- fix: call invalid hook for
watching.invalidateWithChangesAndRemovals()
by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9789 - fix: align ExternalModule module type with webpack's implementation by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/9791
- fix: buildHttp upgrade false by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9801
- fix(plugin_http): implement respond_with_url_module by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/9800
- fix: sort diagnostics before push to compilation by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9824
- docs: improve publicPath with more details and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9629
- docs: add
entrypoint.getEntrypointChunk
to documentation by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9641 - docs: add new customer by @kwonoj in https://github.com/web-infra-dev/rspack/pull/9649
- docs: Writing Plugins Compatible with Rspack and Webpack by @SyMind in https://github.com/web-infra-dev/rspack/pull/9658
- docs: improve docs for amd by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9674
- docs(zh): fix typo in contribute/index.mdx by @coding-ice in https://github.com/web-infra-dev/rspack/pull/9680
- docs: apply new theme colors to the documentation site by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9689
- docs: correct
experiments.outputModule
default value by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9694 - docs: improve loader related documentations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9718
- docs: polish
extends
configuration and blog titles by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9719 - docs: add afterProcessAssets and shouldEmit example by @9aoy in https://github.com/web-infra-dev/rspack/pull/9746
- docs: add guide for assets base path by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9749
- docs: add
modern-module
docs by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/9806 - docs: improve lazy compilation guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9819
- chore: release v1.2.8 by @SyMind in https://github.com/web-infra-dev/rspack/pull/9621
- chore:
use
statements for better clarity and consistency by @reddevilmidzy in https://github.com/web-infra-dev/rspack/pull/9578 - chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9632
- chore(deps): update pnpm to v9.15.9 by @renovate in https://github.com/web-infra-dev/rspack/pull/9633
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9631
- test: modify concurrent to 5 to increase the config test concurrency by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9628
- test(modern-module): add snapshot test by @fi3ework in https://github.com/web-infra-dev/rspack/pull/9640
- test(webpack): Sync new webpack cases tests by @KuSh in https://github.com/web-infra-dev/rspack/pull/9639
- chore(deps): update Rspress to 2.0.0-alpha.2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9647
- chore(deps): update dependency lint-staged to ^15.5.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9651
- test(webpack): Sync new webpack fixtures and hotCases tests by @KuSh in https://github.com/web-infra-dev/rspack/pull/9642
- chore: upgrade @rspack/dev-server and webpack-dev-server by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9660
- chore: clean unused test dev dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9662
- chore: test mac on main branch by @hardfist in https://github.com/web-infra-dev/rspack/pull/9673
- chore(deps): update dependency css-loader to v7 by @renovate in https://github.com/web-infra-dev/rspack/pull/9653
- test(webpack): Sync new webpack watchCases tests by @KuSh in https://github.com/web-infra-dev/rspack/pull/9644
- test(webpack): Sync new webpack statsCases tests by @KuSh in https://github.com/web-infra-dev/rspack/pull/9643
- test(webpack): Sync new webpack configCases/css tests by @KuSh in https://github.com/web-infra-dev/rspack/pull/9655
- refactor: remove async-scope by @hardfist in https://github.com/web-infra-dev/rspack/pull/9677
- chore: remove unused feature for lightningcss by @hardfist in https://github.com/web-infra-dev/rspack/pull/9682
- test: ecosystem CI add plugin test by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9670
- chore: remove zod from exports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9688
- chore(deps): update webpack-bundle-analyzer and webpack-merge by @renovate in https://github.com/web-infra-dev/rspack/pull/9615
- chore(deps): update dependency @swc/core to v1.11.9 by @renovate in https://github.com/web-infra-dev/rspack/pull/9520
- chore: disable lto for ci by @hardfist in https://github.com/web-infra-dev/rspack/pull/9686
- refactor: modify
module.code_generation
to async fn by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9626 - chore: only keep one bench entry in bench by @hardfist in https://github.com/web-infra-dev/rspack/pull/9693
- chore(deps): update dependency @module-federation/runtime-tools to v0.11.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9593
- chore: cargo fmt imports_granularity set crate by @SyMind in https://github.com/web-infra-dev/rspack/pull/9672
- chore: change frozen-lockfile default value to true by @hardfist in https://github.com/web-infra-dev/rspack/pull/9698
- refactor: remove
block_on
in rspack_storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9700 - chore: update rspack-resolver to v0.5.3 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9702
- refactor: async
runtime_module.generate
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9701 - chore: disable tokio lifo optimization by @hardfist in https://github.com/web-infra-dev/rspack/pull/9706
- refactor: remove
block_on
in runtime modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9708 - chore: revert "chore: disable tokio lifo optimization" by @hardfist in https://github.com/web-infra-dev/rspack/pull/9711
- refactor: async render chunk hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9709
- release: 1.3.0-beta.0 by @SyMind in https://github.com/web-infra-dev/rspack/pull/9715
- refactor: remove
block_on
in devtool by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9717 - chore: bump swc to v16.7.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9720
- refactor: remove
block_on
in split chunk name and test by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9722 - chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9729
- refactor: remove
block_on
in split chunk filter by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9732 - test: enable concurrent mode of
block_on
related test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9735 - refactor: remove
block_on
in asset generator by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9733 - chore: add rayon worker name and forbid block_on by @hardfist in https://github.com/web-infra-dev/rspack/pull/9734
- test(webpack): Sync new webpack configCases tests: dll-plugin and web by @KuSh in https://github.com/web-infra-dev/rspack/pull/9739
- test(webpack): Remove unneeded, always truthy test filters by @KuSh in https://github.com/web-infra-dev/rspack/pull/9743
- test(webpack): Sync new webpack configCases tests: runtime and source-map by @KuSh in https://github.com/web-infra-dev/rspack/pull/9740
- test(webpack): Sync new webpack configCases tests: asset-modules, container, ecmaVersion and wasm by @KuSh in https://github.com/web-infra-dev/rspack/pull/9742
- chore(deps/test-tools): add ghost dependences by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9754
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9728
- chore(deps): update dependency @swc/plugin-remove-console to v7 by @renovate in https://github.com/web-infra-dev/rspack/pull/9652
- chore: Consolidate and organize
use
statements for better readability by @reddevilmidzy in https://github.com/web-infra-dev/rspack/pull/9751 - refactor: remove blocking_call_with_sync in module layer filter by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9757
- refactor: async ids hooks and remove blocking in progress plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9758
- refactor: remove blocking call in json parser and SRI plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9760
- chore(deps): update rspress to v2.0.0-alpha.5 by @renovate in https://github.com/web-infra-dev/rspack/pull/9763
- chore(deps): update dependency mermaid to ^11.5.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9764
- refactor: async process runtime requirements by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9750
- test(webpack): Sync new webpack configCases tests #5 by @KuSh in https://github.com/web-infra-dev/rspack/pull/9767
- test(webpack): Sync new webpack configCases tests #6 by @KuSh in https://github.com/web-infra-dev/rspack/pull/9768
- test(webpack): Sync new webpack configCases tests #7 by @KuSh in https://github.com/web-infra-dev/rspack/pull/9769
- chore: import-assertion test case run failed by @SyMind in https://github.com/web-infra-dev/rspack/pull/9781
- chore(deps): bump swc to 16.10.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9773
- refactor: async module hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9779
- refactor(rspack): simplify relative path check in stringifyRequest function by @Simon-He95 in https://github.com/web-infra-dev/rspack/pull/9788
- chore: fix typo by @Simon-He95 in https://github.com/web-infra-dev/rspack/pull/9790
- chore: release v1.3.0-beta.1 by @SyMind in https://github.com/web-infra-dev/rspack/pull/9775
- chore(deps): update rspress to v2.0.0-alpha.6 by @renovate in https://github.com/web-infra-dev/rspack/pull/9795
- refactor: async lazy compilation test tsfn by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9762
- refactor: async parser_and_generator hashing by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9792
- refactor: async hooks in rust by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9799
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9793
- refactor: clean threadsafe function methods by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9803
- chore(deps): update rspress to v2.0.0-alpha.7 by @renovate in https://github.com/web-infra-dev/rspack/pull/9805
- refactor: async public path by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9808
- refactor: use
Filename
uniformly by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9813 - refactor: async filename rendering by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9814
- @reddevilmidzy made their first contribution in https://github.com/web-infra-dev/rspack/pull/9578
- @kwonoj made their first contribution in https://github.com/web-infra-dev/rspack/pull/9649
- @coding-ice made their first contribution in https://github.com/web-infra-dev/rspack/pull/9680
- @fireairforce made their first contribution in https://github.com/web-infra-dev/rspack/pull/9714
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.8...v1.3.0
v1.3.0-beta.1
In the past, lazy compilation required starting a separate server to handle special requests which caused port, server config and proxy inconsistency, now its core capability is encapsulated as an express style middleware.
Developers only need a few lines of code to embed lazy compilation ability into their custom development server, solving the configuration inconsistent problem of multiple service instances. Users of @rspack/cli
can use it without any changes, custom dev server users can easily access it through a middleware, check the following example, you can also see more detail in our official docs.
import { experiments, rspack } from '@rspack/core';
import config from './rspack.config.mjs';
import DevServer from 'webpack-dev-server';
const compiler = rspack(config);
const middleware = experiments.lazyCompilationMiddleware(
compiler,
{
entries: true, // lazy compile entries
imports: true, // lazy compile dynamic imports
...config.experiments?.lazyCompilation
}
);
const server = new DevServer(compiler, {
port: 3000,
setupMiddlewares(other) {
return [middleware, ...other];
},
});
server.start();
We added a built-in plugin CircularDependencyRspackPlugin
to Rspack to detect circular dependencies between runtime modules. Since the plugin is based on Rust, it is directly integrated with the Rspack module graph, avoiding expensive copying and serialization costs. The plugin traverses the module graph of each entry once to find all circular references, rather than checking modules individually, which means that the performance of the plugin is better.
Usage reference:
import { rspack } from '@rspack/core';
const config = {
plugins: [
new rspack.CircularDependencyRspackPlugin({
failOnError: true,
})
]
}
- feat(copyRspackPlugin): align transform api with webpack plugin by @fireairforce in https://github.com/web-infra-dev/rspack/pull/9714
- feat: introduce par_iter_then_collect by @quininer in https://github.com/web-infra-dev/rspack/pull/9736
- feat: implement CircularDependencyRspackPlugin by @faultyserver in https://github.com/web-infra-dev/rspack/pull/8876
- feat!: introduce lazy compilation middleware by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9515
- fix: improve diagnostic messages for Subresource Integrity plugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9725
- fix(module_federation_runtime_plugin): add support for root output dir by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/9620
- fix(rspack_plugin_mf): Track all referenced chunks by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/9707
- fix: source map line mapping bug by @SyMind in https://github.com/web-infra-dev/rspack/pull/9712
- fix: getter and setter type in module subtype by @SyMind in https://github.com/web-infra-dev/rspack/pull/9772
- fix(css): local_names may be None by @inottn in https://github.com/web-infra-dev/rspack/pull/9748
- fix: array in asset info by @SyMind in https://github.com/web-infra-dev/rspack/pull/9774
- fix: import-assertion test case should not run in node 16 by @SyMind in https://github.com/web-infra-dev/rspack/pull/9777
- fix: optimize circular-dependency-check log by @fireairforce in https://github.com/web-infra-dev/rspack/pull/9776
- fix(modern-module): correct count non export star connections by @fi3ework in https://github.com/web-infra-dev/rspack/pull/9784
- fix:
getModuleId
should return number for deterministic moduleIds by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9785 - fix: compilation.*_dependencies iterator ignore added items when sync call by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9782
- docs: improve loader related documentations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9718
- docs: polish
extends
configuration and blog titles by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9719 - docs: add afterProcessAssets and shouldEmit example by @9aoy in https://github.com/web-infra-dev/rspack/pull/9746
- docs: add guide for assets base path by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9749
- refactor: async render chunk hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9709
- release: 1.3.0-beta.0 by @SyMind in https://github.com/web-infra-dev/rspack/pull/9715
- refactor: remove
block_on
in devtool by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9717 - chore: bump swc to v16.7.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9720
- refactor: remove
block_on
in split chunk name and test by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9722 - chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9729
- refactor: remove
block_on
in split chunk filter by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9732 - test: enable concurrent mode of
block_on
related test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9735 - refactor: remove
block_on
in asset generator by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9733 - chore: add rayon worker name and forbid block_on by @hardfist in https://github.com/web-infra-dev/rspack/pull/9734
- test(webpack): Sync new webpack configCases tests: dll-plugin and web by @KuSh in https://github.com/web-infra-dev/rspack/pull/9739
- test(webpack): Remove unneeded, always truthy test filters by @KuSh in https://github.com/web-infra-dev/rspack/pull/9743
- test(webpack): Sync new webpack configCases tests: runtime and source-map by @KuSh in https://github.com/web-infra-dev/rspack/pull/9740
- test(webpack): Sync new webpack configCases tests: asset-modules, container, ecmaVersion and wasm by @KuSh in https://github.com/web-infra-dev/rspack/pull/9742
- chore(deps/test-tools): add ghost dependences by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9754
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9728
- chore(deps): update dependency @swc/plugin-remove-console to v7 by @renovate in https://github.com/web-infra-dev/rspack/pull/9652
- chore: Consolidate and organize
use
statements for better readability by @reddevilmidzy in https://github.com/web-infra-dev/rspack/pull/9751 - refactor: remove blocking_call_with_sync in module layer filter by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9757
- refactor: async ids hooks and remove blocking in progress plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9758
- refactor: remove blocking call in json parser and SRI plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9760
- chore(deps): update rspress to v2.0.0-alpha.5 by @renovate in https://github.com/web-infra-dev/rspack/pull/9763
- chore(deps): update dependency mermaid to ^11.5.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9764
- refactor: async process runtime requirements by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9750
- test(webpack): Sync new webpack configCases tests #5 by @KuSh in https://github.com/web-infra-dev/rspack/pull/9767
- test(webpack): Sync new webpack configCases tests #6 by @KuSh in https://github.com/web-infra-dev/rspack/pull/9768
- test(webpack): Sync new webpack configCases tests #7 by @KuSh in https://github.com/web-infra-dev/rspack/pull/9769
- chore: import-assertion test case run failed by @SyMind in https://github.com/web-infra-dev/rspack/pull/9781
- chore(deps): bump swc to 16.10.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9773
- refactor: async module hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9779
- refactor(rspack): simplify relative path check in stringifyRequest function by @Simon-He95 in https://github.com/web-infra-dev/rspack/pull/9788
- @fireairforce made their first contribution in https://github.com/web-infra-dev/rspack/pull/9714
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.0-beta.0...v1.3.0-beta.1