We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.css.cjs
1 parent a01c7db commit 316658fCopy full SHA for 316658f
.changeset/big-grapes-juggle.md
@@ -0,0 +1,5 @@
1
+---
2
+'@vanilla-extract/integration': patch
3
4
+
5
+Add `.css.cjs` extension to the Vanilla Extract file filter
packages/integration/src/filters.ts
@@ -1,4 +1,4 @@
// Vite adds a "?used" to CSS files it detects, this isn't relevant for
// .css.ts files but it's added anyway so we need to allow for it in the file match
-export const cssFileFilter = /\.css\.(js|mjs|jsx|ts|tsx)(\?used)?$/;
+export const cssFileFilter = /\.css\.(js|cjs|mjs|jsx|ts|tsx)(\?used)?$/;
export const virtualCssFileFilter = /\.vanilla\.css\?source=.*$/;
0 commit comments