瀏覽代碼

fix: jsx cannot be auto import

chenlei 2 月之前
父節點
當前提交
2a6dc1e419
共有 1 個文件被更改,包括 1 次插入0 次删除
  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: {