Browse Source

fix: jsx cannot be auto import

chenlei 2 months ago
parent
commit
2a6dc1e419
1 changed files with 1 additions and 0 deletions
  1. 1 0
      vite.config.ts

+ 1 - 0
vite.config.ts

@@ -70,6 +70,7 @@ export default defineConfig(() => {
             importStyle: 'sass',
           }),
         ],
+        include: [/\.vue$/, /\.vue\?vue/, /\.jsx$/, /\.tsx$/],
       }),
     ],
     resolve: {