Skip to content

v2.1.8

Latest

Choose a tag to compare

@LingyuCoder LingyuCoder released this 04 Aug 11:09

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