Skip to content

Commit bc349fd

Browse files
authored
fix(vite-plugin): prevent unnecessary module invalidations when using PostCSS (#1250)
1 parent 2755282 commit bc349fd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/great-geckos-marry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vanilla-extract/vite-plugin': patch
3+
---
4+
5+
Prevent unnecessary module invalidations when using PostCSS

packages/vite-plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function vanillaExtractPlugin({
214214
if (
215215
server &&
216216
cssMap.has(absoluteId) &&
217-
cssMap.get(absoluteId) !== source
217+
cssMap.get(absoluteId) !== cssSource
218218
) {
219219
const { moduleGraph } = server;
220220
const modules = Array.from(

0 commit comments

Comments
 (0)