Skip to content

Commit aac43cd

Browse files
committed
feat(config): add jsxImportSource for @emotion/react
Configure Vite's React plugin to import JSX from @emotion/react, enabling Emotion's JSX pragma for CSS-in-JS functionality.
1 parent cf0abef commit aac43cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
plugins: [
99
react({
1010
jsxRuntime: 'automatic',
11+
jsxImportSource: '@emotion/react',
1112
}),
1213
svgr(),
1314
envCompatible(),

0 commit comments

Comments
 (0)