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 80341cb commit 0cfd17dCopy full SHA for 0cfd17d
.changeset/sweet-turkeys-rhyme.md
@@ -0,0 +1,5 @@
1
+---
2
+'@vanilla-extract/esbuild-plugin': patch
3
4
+
5
+Fix errors occurring when using TypeScript in .css.ts files
fixtures/themed/src/shared.css.ts
@@ -1,6 +1,6 @@
import { globalStyle, style } from '@vanilla-extract/css';
-export const shadow = style({
+export const shadow: string = style({
boxShadow: '0 0 5px red',
});
6
packages/esbuild-plugin/src/index.ts
@@ -53,6 +53,7 @@ const vanillaExtractFilescopePlugin = (): Plugin => ({
53
54
return {
55
contents,
56
+ loader: path.match(/\.(ts|tsx)$/i) ? 'ts' : undefined,
57
resolveDir: dirname(path),
58
};
59
}
0 commit comments