npm @rspack/cli 2.1.8
v2.1.8

5 hours ago

Highlights

Persistent cache storage options now align with webpack

Rspack now supports cache.name and cache.storage.location, aligning with webpack's persistent cache semantics. cache.storage.directory is now the base directory, while the final cache location defaults to <directory>/<cache.name>. Default cache paths remain unchanged.

If you previously used storage.directory as the exact cache path, migrate it to storage.location. Existing cache data is not migrated automatically.

cache: {
  type: 'persistent',
  storage: {
    type: 'filesystem',
-   directory: '/custom/cache',
+   location: '/custom/cache',
  },
}

What's Changed

New Features 🎉

  • feat(rstest): inject module origin for import.meta.rstest by @9aoy in #15006
  • feat: align persistent cache storage options with webpack by @hardfist in #15049
  • feat(hmr): emit css.c / css.r in the hot-update manifest for precise CSS updates by @stormslowly in #14682

Performance 🚀

Bug Fixes 🐞

Refactor 🔨

  • refactor(binding): replace compilation pointers with compilation ids by @SyMind in #14988

Document 📖

Other Changes

New Contributors

Full Changelog: v2.1.7...v2.1.8

Don't miss a new cli release

NewReleases is sending notifications on new releases.