What's Changed
New Features 🎉
- feat: support import.meta.env by @intellild in #14483
Performance 🚀
- perf: cache module concatenation analysis across roots by @ScriptedAlchemy in #14832
- perf: reuse module concatenation search state by @ScriptedAlchemy in #14833
- perf: reduce module concatenation hot-path overhead by @ScriptedAlchemy
in #14834
Bug Fixes 🐞
- fix: materialize namespace object for concatenated modules by @LingyuCoder in #14882
- fix: parse preserved createRequire arguments by @JSerFeng in #14813
- fix: invalidate module hashes when assigning deterministic and natural ids by @ahabhgk in #14878
- fix: disable incremental chunk assets for entry fullhash filenames by @ahabhgk in #14890
- fix: propagate asset emit errors by @LingyuCoder in #14891
- fix(asset): avoid JavaScript output for URL-only assets by @JSerFeng in #14885
- fix(rslib): avoid worker external facade in bundleless output by @JSerFeng in #14900
- fix: execute worker entry modules in modern-module output by @JSerFeng in #14876
- fix(cli): preserve defineConfig inference by @chenjiahan in #14924
- fix(swc-loader): preserve structured swc diagnostics by @SyMind in #14921
- fix: respect DllPlugin context for concatenated modules by @hardfist in #14923
- fix(ci): resolve the binary-size base for stacked PRs by @stormslowly in #14903
- fix(cache): scope maxVersions by compiler using compilerPath by @hardfist in #14954
Refactor 🔨
- refactor(esm-library): remove redundant module marking by @JSerFeng in #14875
- refactor(runtime): collect runtime module variables from templates by @LingyuCoder in #14917
- refactor(runtime): simplify modern-module output by @LingyuCoder in #14741
Document 📖
- docs: recommend TypeScript 7 for ts-checker-rspack-plugin by @chenjiahan in #14901
- docs: refresh Rstack slogan by @chenjiahan in #14928
- docs: mention Vue DevTools integration by @chenjiahan in #14932
- docs: clarify resolve.modules behavior by @chenjiahan in #14953
- docs: fix formatting in split-chunks-plugin.mdx by @davidjb in #14963
Other Changes
- chore(deps): update dependency @module-federation/runtime-tools to v2.8.0 by @renovate[bot] in #14848
- chore(deps): update rust crate either to 1.16.0 by @renovate[bot] in #14693
- test(module-concat): add concatenation benchmark baselines by @@ScriptedAlchemy in #14831
- chore(ci): upload ci-profile binary size from main CI by @stormslowly in #14868
- chore(deps): upgrade Rslib to 1.0.0-beta.1 by @Timeless0911 in #14925
- chore(deps): update patch npm dependencies by @renovate[bot] in #14838
- test: align defineConfig error assertions by @chenjiahan in #14930
- chore(deps): manage TypeScript with pnpm catalogs by @chenjiahan in #14931
- chore(deps): migrate workspace deps to pnpm catalogs by @chenjiahan in #14935
- chore(deps): update dependency ts-checker-rspack-plugin to ^1.5.3 by @renovate[bot] in #14943
- chore(deps): update dependency fs-extra to ^11.4.0 by @renovate[bot] in #14937
- chore(deps): update dependency http-proxy-middleware to ^4.2.0 by @renovate[bot] in #14938
- chore(deps): update dependency rspack-vue-loader to ^17.6.1 by @renovate[bot] in #14941
- chore(deps): update dependency lint-staged to ^17.2.0 by @renovate[bot] in #14939
- chore(deps): update dependency markdown-to-jsx to ^9.9.0 by @renovate[bot] in #14940
New Contributors
Full Changelog: v2.1.5...v2.1.6