rspack v2.1.8

v2.1.8
Added 3
  • Support cache.name and cache.storage.location options to align with webpack's persistent cache semantics
  • Emit css.c and css.r in the hot-update manifest for precise CSS updates
  • Inject module origin for import.meta.rstest
Changed 1
  • cache.storage.directory is now the base directory, with final cache location defaulting to <directory>/<cache.name>
Fixed 15
  • Preserve entry dependency identity in binding
  • Preserve Lightning CSS license comments in loader
  • Add missing CJS interop runtime requirement for ESM
  • Avoid dead require bootstrap in runtime
  • Preserve collision-free createRequire imports in runtime
  • Clean up compilation-scoped plugin caches
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 🎉
Performance 🚀
Bug Fixes 🐞
Refactor 🔨
Document 📖
Other Changes
New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.1.7...v2.1.8

View original

Upgraded? How did it go?

Discussion