Explorar o código

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

bxy hai 1 ano
pai
achega
8d85a3b982
Modificáronse 1 ficheiros con 1 adicións e 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__),