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 2c46c8b commit ebb3edcCopy full SHA for ebb3edc
.changeset/serious-geese-run.md
@@ -0,0 +1,5 @@
1
+---
2
+'@vanilla-extract/esbuild-plugin': patch
3
4
+
5
+Trigger rebuild for CSS file dependencies
packages/esbuild-plugin/src/index.ts
@@ -104,7 +104,7 @@ export function vanillaExtractPlugin({
104
plugins: [vanillaExtractFilescopePlugin({ projectRoot })],
105
});
106
107
- const { outputFiles } = result;
+ const { outputFiles, metafile } = result;
108
109
if (!outputFiles || outputFiles.length !== 1) {
110
throw new Error('Invalid child compilation');
@@ -158,6 +158,7 @@ export function vanillaExtractPlugin({
158
return {
159
contents,
160
loader: 'js',
161
+ watchFiles: Object.keys(metafile?.inputs || {}),
162
};
163
164
},
0 commit comments