Skip to content

Commit 316658f

Browse files
authored
Add .css.cjs to the Vanilla Extract file filter (#1031)
1 parent a01c7db commit 316658f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/big-grapes-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vanilla-extract/integration': patch
3+
---
4+
5+
Add `.css.cjs` extension to the Vanilla Extract file filter
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Vite adds a "?used" to CSS files it detects, this isn't relevant for
22
// .css.ts files but it's added anyway so we need to allow for it in the file match
3-
export const cssFileFilter = /\.css\.(js|mjs|jsx|ts|tsx)(\?used)?$/;
3+
export const cssFileFilter = /\.css\.(js|cjs|mjs|jsx|ts|tsx)(\?used)?$/;
44
export const virtualCssFileFilter = /\.vanilla\.css\?source=.*$/;

0 commit comments

Comments
 (0)