Skip to content

Commit

Permalink
fix(vite-plugin): prevent unnecessary module invalidations when using…
Browse files Browse the repository at this point in the history
… PostCSS (#1250)
  • Loading branch information
kosmotema committed Dec 10, 2023
1 parent 2755282 commit bc349fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-geckos-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vanilla-extract/vite-plugin': patch
---

Prevent unnecessary module invalidations when using PostCSS
2 changes: 1 addition & 1 deletion packages/vite-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function vanillaExtractPlugin({
if (
server &&
cssMap.has(absoluteId) &&
cssMap.get(absoluteId) !== source
cssMap.get(absoluteId) !== cssSource
) {
const { moduleGraph } = server;
const modules = Array.from(
Expand Down

0 comments on commit bc349fd

Please sign in to comment.