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