Browse Source

fix: Cannot access 'Wl' before initialization

wuwenyi 2 weeks ago
parent
commit
090e89d3cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vite.config.ts

+ 2 - 2
vite.config.ts

@@ -17,8 +17,8 @@ export default defineConfig(({ mode }) => ({
       output: {
         manualChunks: {
           'element-plus': ['element-plus'],
-          'vue-vendor': ['vue', 'vue-router', 'pinia'],
-          'logicflow': ['@logicflow/core', '@logicflow/extension']
+          'vue-vendor': ['vue', 'vue-router', 'pinia']
+          // logicflow 有循环依赖,单独分 chunk 会导致 TDZ 报错,让它随主包打包
         }
       }
     }