What's Changed
💡 Highlights
DefinePlugin destructuring optimization
Rspack v1.1.2 improved the output of DefinePlugin
by eliminating unused object properties from the final bundle, resulting in a smaller output size:
Exciting New Features 🎉
- feat(externals): support 'commonjs-import' type by @fi3ework in #8414
- feat(incremental): chunk level incremental by @ahabhgk in #8367
- feat: unify js dependency by @SyMind in #8394
- feat: support attributes for ESM external module by @fi3ework in #8422
- feat: align webpack DefinePlugin for destructuring optimization by @inottn in #8452
- feat(incremental): render chunk manifest by @ahabhgk in #8440
- feat(persistent cache): add snapshot module by @jerrykingxyz in #8424
Bug Fixes 🐞
- fix: output should be consistent when using splitChunks by @JSerFeng in #8425
- fix(core): remove hang risk caused by coop budget in tokio by @hardfist in #8434
- fix: should not free native compiler while compiler is running by @h-a-n-a in #8437
- fix: align bytes ptr address for
cacheable::from_byte
by @jerrykingxyz in #8450 - fix: correct favicon path when output.publicPath is set to
auto
by @inottn in #8415 - fix(lightningcss): align type with lightningcss by @GiveMe-A-Name in #8456
- fix: the attribute values of HTML tags should not be converted to lowercase by @inottn in #8443
- fix: should respect max size correctly by @JSerFeng in #8442
- fix(modern-module): remove extra import statement for star reexport by @fi3ework in #8457
- fix: set the correct asset_info when extracting css by @inottn in #8454
- fix: linux musl resolve failed by @jerrykingxyz in #8467
- fix: modify css loading runtime panic by @ahabhgk in #8475
Document Updates 📖
- docs: polish module methods documentation by @chenjiahan in #8448
- docs: update Prefetching link by @xiaohp in #8449
- docs: invite @inottn to Rspack core team by @chenjiahan in #8462
- docs: add more JavaScript runtimes by @chenjiahan in #8464
Other Changes
- test: delete test.filter.js if test is pass in tests/webpack-test by @GiveMe-A-Name in #8409
- test: add miri testing by @h-a-n-a in #8426
- chore(deps): update github-actions by @renovate in #8416
- chore(rspack-cli): add strip-ansi in dev deps by @stormslowly in #8432
- refactor: rename async_run to background_run & sync_run to main_run by @hardfist in #8385
- test: replace strip-ansi with Node.js builtin util by @chenjiahan in #8439
- test: fix some unstable test cases for layer stats by @easy1090 in #8453
- build(windows): static linking VS CRT on aarch64 msvc !windows by @h-a-n-a in #8465
- chore(deps): update napi by @renovate in #8417
- ci(release): fix release pull request by @h-a-n-a in #8472
New Contributors
- @stormslowly made their first contribution in #8432
- @xiaohp made their first contribution in #8449
Full Changelog: v1.1.1...v1.1.2