github web-infra-dev/rspack v1.6.6

6 hours ago

Highlights 💡

Compact module factories

Rspack now generates a more compact module factory format that trims the wrapper function. Benchmarks show this reduces bundle size by about 1% before gzip.

image

What's Changed

Performance Improvements ⚡

New Features 🎉

  • feat: support shorthand function for module factory to reduce bundle size by @JSerFeng in #12226
  • feat(loader-runner): Allow limiting worker pool size for parallel loaders by @Pablinho in #12277
  • feat: do not render js output if ref module is only css source type by @JSerFeng in #12329
  • feat: supports async modules for EsmLibraryPlugin by @JSerFeng in #12338

Bug Fixes 🐞

  • fix(plugin): remove duplicated chunks in html scripts by @stormslowly in #12304
  • fix: should generate sri hash for chunks that only have concatenated modules by @LingyuCoder in #12310
  • fix: persistent cache watch context dependencies changes by @jerrykingxyz in #12309
  • fix: should set interop2_used to true if namespace import default-only by @JSerFeng in #12316
  • fix: check unused class names should check all conventions by @JSerFeng in #12336

Refactor 🔨

Document Updates 📖

Other Changes

  • chore: release v1.6.5 by @jerrykingxyz in #12278
  • chore(deps): update dependency @ast-grep/napi to ^0.40.0 by @renovate[bot] in #12290
  • chore(deps): update dependency @microsoft/api-extractor to v7.55.1 by @renovate[bot] in #12291
  • chore(deps): update patch npm dependencies by @renovate[bot] in #12289
  • chore(deps): update dependency @microsoft/api-extractor-model to v7.32.1 by @renovate[bot] in #12292
  • chore: add import_meta_property_in_destructuring parser hook by @LingyuCoder in #12255
  • chore(workflow): update node version to 22 in ci and nvm configuration by @chenjiahan in #12320
  • chore: add Rsdoctor diff action by @yifancong in #12264
  • test: bump rstest to show relevant running tests by @9aoy in #12323
  • ci: add ecosystem CI based on rstack-ecosystem-ci by @fi3ework in #12318
  • ci(ecosystem): do not need to clone ecosystem ci repo to sub folder by @fi3ework in #12339
  • chore(CI): replace the rspack diff demos by @yifancong in #12337

New Contributors

Full Changelog: v1.6.5...v1.6.6

Don't miss a new rspack release

NewReleases is sending notifications on new releases.