npm @rspack/core 1.2.8
v1.2.8

one day ago

Highlights 💡

Optimized memory consumption while rebuilding

Bumped Mimalloc to v3 to lift memory usage issue while rebuilding on macOS. #9533

A user shared the following results after testing the 1.2.8:

"The canary version solves the memory leak (almost) completely for me 🥳."

Version Initial Compile After 10 HMR
1.2.2 4.57 GB 5.48 GB
1.2.7 3.93 GB 4.18 GB
1.2.8-canary-3d971bbf-20250304 3.66 GB 3.72 GB

The 1.2.8 demonstrates a ~10% improvement over 1.2.7.

What's Changed

Exciting New Features 🎉

  • feat: render runtime template with dojang by @GiveMe-A-Name in #9501
  • feat(memory-allocator): use mimalloc-v3 on macOS and bump mimalloc to v2.1.7 on other platforms by @h-a-n-a in #9533
  • feat(cli): rspack preview support for nodeEnv flag and default env by @chenjiahan in #9543
  • feat(create-rspack): add preview script and remove cross-env by @chenjiahan in #9544
  • feat: module info header plugin by @stormslowly in #9411
  • feat(diagnostic): support JSONError diagnostic in resolver by @h-a-n-a in #9566
  • feat(wasm): support wasm compilation by @CPunisher in #9585
  • feat(core): enhanced version hashing to support directory build dependencies by @caohuilin in #9604
  • feat: support entrypoint.getEntrypointChunk() by @ahabhgk in #9625

Bug Fixes 🐞

  • fix: should give js entry dependency id when hit cache by @SyMind in #9535
  • fix: change module matchResource in loader by @ahabhgk in #9536
  • fix: should re-build chunk graph when adding a entry connection by @ahabhgk in #9537
  • fix(lazy-compilation): should have separate state in multi-compiler by @JSerFeng in #9545
  • fix(html): include innerHTML content in rendered asset tags by @faultyserver in #9526
  • fix: copy filename_template into split chunks by @henryqdineen in #8900
  • fix: require_ensure block's dep by @stormslowly in #9590
  • fix: add support for using id placeholder in the webassemblyModuleFilename by @inottn in #9603
  • fix: css url get target asset module url panic by @ahabhgk in #9607
  • fix: support access to userRequest of ExternalModule by @inottn in #9602
  • fix(core): remove blocking to avoid deadlock for multi compiler by @hardfist in #9587

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v1.2.7...v1.2.8

Don't miss a new core release

NewReleases is sending notifications on new releases.