Duplicated hash on build
Author: SamirPerezBazzaCreated Jun 12, 2026Updated Jul 13, 2026
Labelscssneeds reproduction
Describe the bug
Some styles have the same hash when building.
I managed to fix this by adding a debugId using the vite plugin, but this should not happen
const threadStyles = {
threadContainer: style({
border: `1px solid ${color.grey40}`,
background: color.grey10,
padding: `${spacing['1x']} ${spacing['2x']}`,
}),
threadCount: style({
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
cursor: 'pointer',
fontWeight: font.weightMedium,
})
}Reproduction
.
System Info
System:
OS: macOS 26.5
CPU: (12) arm64 Apple M4 Pro
Memory: 2.41 GB / 48.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.14.1 - /opt/homebrew/bin/node
npm: 11.12.1 - /opt/homebrew/bin/npm
pnpm: 10.22.0 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 149.0.7827.103
Safari: 26.5
npmPackages:
@vanilla-extract/css: ^1.14.2 => 1.14.2
@vanilla-extract/vite-plugin: ^5.1.1 => 5.1.1
vite: ^8.0.3 => 8.0.3Used Package Manager
pnpm
Logs
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Source: vanilla-extract-css/vanilla-extract