Explorar el Código

fix: 修复引入viteCommonJs时报错找不到"vertx"的问题

bxy hace 1 año
padre
commit
8d85a3b982
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      vite.config.ts

+ 1 - 1
vite.config.ts

@@ -60,7 +60,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
         bundler: 'vite',
         openIn: 'reuse',
       }),
-      viteCommonjs(),
+      viteCommonjs({ skipPreBuild: true }),
     ],
     define: {
       __APP_INFO__: JSON.stringify(__APP_INFO__),