Highlights 💡
Implement the extends
option
The rspack.config.js
now supports an extends
property, enabling nested configuration inheritance.
Example usage:
export default {
extends: './core.rspack.config.mjs',
// Base configuration options
};
Special thanks to @hulin32 for contributing this feature: #9617. 🎉
What's Changed
Breaking Changes 🛠
- feat(compiler-builder)!: support
BuilderError
by @h-a-n-a in #9627 - feat(deps)!: update SWC version to 16.5.0 by @GiveMe-A-Name in #9671
Exciting New Features 🎉
- feat: support module subtype in js side by @SyMind in #9613
- feat: implement
module.generator.json.JSONParse
by @colinaaa in #9666 - feat: support read
NormalModule.loaders
by @ahabhgk in #9664 - feat: incremental for new code splitting by @JSerFeng in #9667
- feat: add extends property in config options by @hulin32 in #9617
- feat: externals getResolve callback third argument by @ahabhgk in #9681
- feat: js api support instranceof AsyncDependenciesBlock by @SyMind in #9661
- feat: add file permission bits on copy by @hulin32 in #9650
Bug Fixes 🐞
- fix(commonjs-static): export unprovided variables by @fi3ework in #9630
- fix: define with recursion value by @ahabhgk in #9646
- fix: revoke dependency clean dependency at module and block by @jerrykingxyz in #9638
- fix(core): use future_scope to run parallel future by @hardfist in #9637
- fix: remove outdata compilation error by @SyMind in #9697
- fix: rename loader item request to loader by @ahabhgk in #9704
- fix: should convert diagnostic.loc to string by @JSerFeng in #9695
- fix: napi register module twice by @stormslowly in #9648
Document Updates 📖
- docs: improve publicPath with more details and examples by @chenjiahan in #9629
- docs: add
entrypoint.getEntrypointChunk
to documentation by @ahabhgk in #9641 - docs: add new customer by @kwonoj in #9649
- docs: Writing Plugins Compatible with Rspack and Webpack by @SyMind in #9658
- docs: improve docs for amd by @ahabhgk in #9674
- docs(zh): fix typo in contribute/index.mdx by @coding-ice in #9680
- docs: apply new theme colors to the documentation site by @chenjiahan in #9689
- docs: correct
experiments.outputModule
default value by @chenjiahan in #9694
Other Changes
- chore: release v1.2.8 by @SyMind in #9621
- chore:
use
statements for better clarity and consistency by @reddevilmidzy in #9578 - chore(deps): update npm dependencies by @renovate in #9632
- chore(deps): update pnpm to v9.15.9 by @renovate in #9633
- chore(deps): update github-actions by @renovate in #9631
- test: modify concurrent to 5 to increase the config test concurrency by @LingyuCoder in #9628
- test(modern-module): add snapshot test by @fi3ework in #9640
- test(webpack): Sync new webpack cases tests by @KuSh in #9639
- chore(deps): update Rspress to 2.0.0-alpha.2 by @chenjiahan in #9647
- chore(deps): update dependency lint-staged to ^15.5.0 by @renovate in #9651
- test(webpack): Sync new webpack fixtures and hotCases tests by @KuSh in #9642
- chore: upgrade @rspack/dev-server and webpack-dev-server by @LingyuCoder in #9660
- chore: clean unused test dev dependencies by @LingyuCoder in #9662
- chore: test mac on main branch by @hardfist in #9673
- chore(deps): update dependency css-loader to v7 by @renovate in #9653
- test(webpack): Sync new webpack watchCases tests by @KuSh in #9644
- test(webpack): Sync new webpack statsCases tests by @KuSh in #9643
- test(webpack): Sync new webpack configCases/css tests by @KuSh in #9655
- refactor: remove async-scope by @hardfist in #9677
- chore: remove unused feature for lightningcss by @hardfist in #9682
- test: ecosystem CI add plugin test by @stormslowly in #9670
- chore: remove zod from exports by @ahabhgk in #9688
- chore(deps): update webpack-bundle-analyzer and webpack-merge by @renovate in #9615
- chore(deps): update dependency @swc/core to v1.11.9 by @renovate in #9520
- chore: disable lto for ci by @hardfist in #9686
- refactor: modify
module.code_generation
to async fn by @LingyuCoder in #9626 - chore: only keep one bench entry in bench by @hardfist in #9693
- chore(deps): update dependency @module-federation/runtime-tools to v0.11.0 by @renovate in #9593
- chore: cargo fmt imports_granularity set crate by @SyMind in #9672
- chore: change frozen-lockfile default value to true by @hardfist in #9698
- refactor: remove
block_on
in rspack_storage by @LingyuCoder in #9700 - chore: update rspack-resolver to v0.5.3 by @ahabhgk in #9702
- refactor: async
runtime_module.generate
by @LingyuCoder in #9701 - chore: disable tokio lifo optimization by @hardfist in #9706
- refactor: remove
block_on
in runtime modules by @LingyuCoder in #9708 - chore: revert "chore: disable tokio lifo optimization" by @hardfist in #9711
New Contributors
- @reddevilmidzy made their first contribution in #9578
- @kwonoj made their first contribution in #9649
- @coding-ice made their first contribution in #9680
Full Changelog: v1.2.8...v1.3.0-beta.0