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
v1.3.0-beta.0
The rspack.config.js
now supports an extends option, which is used to extend configurations from other files or packages. This allows you to create a base configuration and extend it for different environments or use cases.
Example usage:
export default {
extends: './base.rspack.config.mjs',
// Override or add to the base configuration
output: {
filename: '[name].bundle.js',
},
};
Special thanks to @hulin32 for contributing this feature: #9617. 🎉
- feat(compiler-builder)!: support
BuilderError
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9627 - feat(deps)!: update SWC version to 16.5.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9671
- 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
- 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
- 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
- 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
- @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
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.8...v1.3.0-beta.0
v1.2.8
Bumped Mimalloc to v3 to lift memory usage issue while rebuilding on macOS. https://github.com/web-infra-dev/rspack/pull/9533
A user shared the following results after testing the 1.2.8:
"The canary version solves the memory leak (almost) completely for me 🥳."
Version | Initial Compile | After 10 HMR |
---|---|---|
1.2.2 | 4.57 GB | 5.48 GB |
1.2.7 | 3.93 GB | 4.18 GB |
1.2.8-canary-3d971bbf-20250304 | 3.66 GB | 3.72 GB |
The 1.2.8 demonstrates a ~10% improvement over 1.2.7.
- feat: render runtime template with dojang by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9501
- feat(memory-allocator): use mimalloc-v3 on macOS and bump mimalloc to v2.1.7 on other platforms by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9533
- feat(cli):
rspack preview
support fornodeEnv
flag and default env by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9543 - feat(create-rspack): add
preview
script and removecross-env
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9544 - feat: module info header plugin by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9411
- feat(diagnostic): support
JSONError
diagnostic in resolver by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9566 - feat(wasm): support wasm compilation by @CPunisher in https://github.com/web-infra-dev/rspack/pull/9585
- feat(core): enhanced version hashing to support directory build dependencies by @caohuilin in https://github.com/web-infra-dev/rspack/pull/9604
- feat: support
entrypoint.getEntrypointChunk()
by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9625
- fix: should give js entry dependency id when hit cache by @SyMind in https://github.com/web-infra-dev/rspack/pull/9535
- fix: change module matchResource in loader by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9536
- fix: should re-build chunk graph when adding a entry connection by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9537
- fix(lazy-compilation): should have separate state in multi-compiler by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9545
- fix(html): include
innerHTML
content in rendered asset tags by @faultyserver in https://github.com/web-infra-dev/rspack/pull/9526 - fix: copy filename_template into split chunks by @henryqdineen in https://github.com/web-infra-dev/rspack/pull/8900
- fix: require_ensure block's dep by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9590
- fix: add support for using id placeholder in the webassemblyModuleFilename by @inottn in https://github.com/web-infra-dev/rspack/pull/9603
- fix: css url get target asset module url panic by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9607
- fix: support access to userRequest of ExternalModule by @inottn in https://github.com/web-infra-dev/rspack/pull/9602
- fix(core): remove blocking to avoid deadlock for multi compiler by @hardfist in https://github.com/web-infra-dev/rspack/pull/9587
- docs: fix invalid link in roadmap by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9539
- docs: invite @stormslowly to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9546
- docs: add Rspeedy and Lynx to ecosystem by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9556
- docs: add Angular Rspack and update example repo link by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9577
- docs: add debugging guide by @hardfist in https://github.com/web-infra-dev/rspack/pull/9540
- docs: update quick start guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9600
- docs: deprecate
sri
option of HTML plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9610
- chore: release v1.2.7 by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9527
- test: run watch cases concurrently by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9541
- refactor(rust): improve
replace_all_placeholder
by @shulaoda in https://github.com/web-infra-dev/rspack/pull/9525 - test: run partial cases concurrently by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9547
- chore(deps): update rspress to v1.42.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9519
- chore(deps): update dependency create-rstack to v1.3.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9548
- chore(deps): update dependency tsup to ^8.4.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9549
- chore(deps): update dependency prettier to v3.5.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/9551
- chore(deps): update rust crate rspack_resolver to 0.5.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/9553
- chore(deps): update babel by @renovate in https://github.com/web-infra-dev/rspack/pull/9555
- chore(deps): update yarn to v3.8.7 by @renovate in https://github.com/web-infra-dev/rspack/pull/9554
- test: fix import failed while running cases concurrently by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9558
- test: split config snapshot to each case by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9559
- ci: run api and doc coverage check in lint job by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9561
- chore: remove unnecessary console in test by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9565
- build: Set optimization level in per-crate basis by @kdy1 in https://github.com/web-infra-dev/rspack/pull/9400
- chore(deps): Dedupe pnpm dependencies by @KuSh in https://github.com/web-infra-dev/rspack/pull/9563
- chore: bench stats.toJson() by @SyMind in https://github.com/web-infra-dev/rspack/pull/9569
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9552
- chore: split and group .github/action by features by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9574
- chore: ecosystem benchmark should download artifact from github by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9579
- ci: install nightly components manually by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9576
- chore(deps): update dependency babel-loader to v10 by @renovate in https://github.com/web-infra-dev/rspack/pull/9582
- chore(deps): update rspress to v1.43.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9580
- test: rollback windows ci profile to dev by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9583
- test: run config and hot cases concurrently by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9560
- test: pass more webpack test after ModuleInfoHeaderPlugin finished by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9571
- chore: align to wepack chunk load global's double quote by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9589
- chore(deps): update dependency @types/ws to v8.18.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9594
- chore(deps): update dependency axios to ^1.8.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/9595
- chore(deps): update dependency core-js to v3.41.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9596
- chore(deps): update rspress to v1.43.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/9597
- chore(deps): update dependency html-loader to ^5.1.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9598
- chore(deps): update dependency zx to v8.4.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9599
- test: jsdom runner module wrapper by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9609
- test: should not output too much logs during the test by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9612
- refactor: add unconstrained to tokio spawn tasks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9611
- chore(workflow): add interactive debug test launch by @hardfist in https://github.com/web-infra-dev/rspack/pull/9591
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9550
- test: remove color setting and node warnings by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9622
- chore: add build:wasm scripts by @hardfist in https://github.com/web-infra-dev/rspack/pull/9623
- @faultyserver made their first contribution in https://github.com/web-infra-dev/rspack/pull/9526
- @henryqdineen made their first contribution in https://github.com/web-infra-dev/rspack/pull/8900
- @kdy1 made their first contribution in https://github.com/web-infra-dev/rspack/pull/9400
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.7...v1.2.8
v1.2.7
If you want to know more details, check this out https://github.com/web-infra-dev/rspack/pull/9518
Name | Base (2025-02-28 2b45815) | Current | Change |
---|---|---|---|
threejs_development-mode_10x_hmr + rss memory | 1137 MiB ± 129 MiB | 890 MiB ± 293 MiB | -21.72 % |
If you want to know more about this , follow link ; and this is the benchmark report.
- perf: avoid create new dependency for add include by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9505
- perf: try reduce max_blocking_threads to save memory and reduce fs contention by @hardfist in https://github.com/web-infra-dev/rspack/pull/9518
- feat: render more runtime template with dojang by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9444 https://github.com/web-infra-dev/rspack/pull/9447 https://github.com/web-infra-dev/rspack/pull/9450 https://github.com/web-infra-dev/rspack/pull/9487 https://github.com/web-infra-dev/rspack/pull/9452 https://github.com/web-infra-dev/rspack/pull/9491 https://github.com/web-infra-dev/rspack/pull/9496 https://github.com/web-infra-dev/rspack/pull/9509 https://github.com/web-infra-dev/rspack/pull/9498
- feat: amd context require by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9495
- feat: compiler.run add options to set modifiedFiles and removedFiles by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9475
- feat: add contextInfo.issuerLayer for nmf resolve hooks by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9504
- feat: js api get outgoing connections in order by @SyMind in https://github.com/web-infra-dev/rspack/pull/9510
- feat(memory-cache): add
maxGenerations
support by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9517 - feat: improve add include error msg by @SyMind in https://github.com/web-infra-dev/rspack/pull/9529
- feat(ci): enable cfa by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9470
- fix: hmr should work when moving module between different runtime by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9412
- fix: persistent cache skip calc modified_files when rebuild by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9448
- fix: hash runtime condition for connection by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9456
- fix: detect module graph change right before build_chunk_graph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9453
- fix: unify js assets info type by @SyMind in https://github.com/web-infra-dev/rspack/pull/9464
- fix: commonjs static library mode by @hai-x in https://github.com/web-infra-dev/rspack/pull/9390
- fix(cli): failed to run preview with TS config file by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9468
- fix: handle css with BOM by @inottn in https://github.com/web-infra-dev/rspack/pull/9467
- fix: rebuild ignore modules contain built-in loader errors by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9482
- fix: concate with external runtime specific modules by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9490
- fix: add_include can not incremental by @SyMind in https://github.com/web-infra-dev/rspack/pull/9423
- fix: entry dependency passed to addInclude should be used in module graph by @SyMind in https://github.com/web-infra-dev/rspack/pull/9476
- fix(rspack_plugin_runtime): do not render chunks that only contain non-js module types by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/9521
- fix: update asset can return undefined by @SyMind in https://github.com/web-infra-dev/rspack/pull/9530
- docs: complete loader context API doc and JSDoc by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9478
- docs: fix the reference to process asset stages in examples by @xbzhang2020 in https://github.com/web-infra-dev/rspack/pull/9485
- docs: compiler.run add option param by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9503
- docs: update CRA migration guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9512
- docs: update local debugging command by @KuSh in https://github.com/web-infra-dev/rspack/pull/9522
- docs: update Module Federation syntax downgrade FAQ by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9528
- chore: release v1.2.6 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9446
- chore(deps): update npm dependencies by @renovate in https://github.com/web-infra-dev/rspack/pull/9462
- chore(deps): update pnpm to v9.15.6 by @renovate in https://github.com/web-infra-dev/rspack/pull/9463
- chore(deps): update dependency prettier to v3.5.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/9459
- test: add runner cache for better test performance by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9449
- chore: reduce debug symbol size by @hardfist in https://github.com/web-infra-dev/rspack/pull/9465
- test: move plugin test to eco-ci by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9466
- test: lazy create stats in runner by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9469
- chore: mark
compiler.compile
as private method by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9472 - ci: save cache in test task by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9474
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9458
- chore: use tmpdir to avoid no space left error by @hardfist in https://github.com/web-infra-dev/rspack/pull/9486
- test: improve webpack test performance by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9489
- chore: release v1.2.7-alpha.0 by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9493
- test(diff): remove modules injected by css-loader by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9497
- test: improve cli test performance by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9494
- chore: cleanup for avoiding meaningless diff with more-js-api-v2 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9499
- test: run cli test cases parallel by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9502
- chore: add reason about why skip big-assets test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9516
- @xbzhang2020 made their first contribution in https://github.com/web-infra-dev/rspack/pull/9485
- @KuSh made their first contribution in https://github.com/web-infra-dev/rspack/pull/9522
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.6...v1.2.7