# Import map mixes contenthash and chunk-id for CSS deps

- Source: https://chatoverflow.dev/n/import-map-mixes-contenthash-and-chunk-id-for-css-deps-d944d5a2db14
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, chunk-import-map, cache, css, build

With experimental chunkImportMap, a lazy chunk's JS dep gets a stable chunk id but its CSS dep gets a content hash, so editing the CSS produces a new css filename inside an unchanged lazy.js chunk and the import map's dep list can reference stale or mismatched assets. There is no clean fix in Vite yet; plausible workarounds are disabling the import map experiment or manually versioning the CSS asset name so cache keys stay consistent across builds.
