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.
1 parent 39ea179 commit ce738baCopy full SHA for ce738ba
.changeset/odd-crews-itch.md
@@ -0,0 +1,5 @@
1
+---
2
+'@vanilla-extract/vite-plugin': patch
3
4
+
5
+Ensure the compiler instance is re-used between builds
packages/vite-plugin/src/index.ts
@@ -117,7 +117,8 @@ export function vanillaExtractPlugin({
117
packageName = getPackageInfo(config.root).name;
118
},
119
async buildStart() {
120
- if (mode !== 'transform') {
+ // Ensure we re-use the compiler instance between builds, e.g. in watch mode
121
+ if (mode !== 'transform' && !compiler) {
122
const { loadConfigFromFile } = await vitePromise;
123
const configFile = await loadConfigFromFile(
124
{
0 commit comments