refactor: 拆分管理端入口并优化构建分包
This commit is contained in:
1 parent
0f6ad8b993
commit
bf4bbf81c7
17 files changed
+455
-353
No files matched your search
@@ -43,5 +43,17 @@ export default defineConfig({
|
||||
: {}),
|
||||
},
|
||||
},
|
||||
build: { outDir: "dist" },
|
||||
build: {
|
||||
outDir: "dist",
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes("/node_modules/.pnpm/react-dom@")) return "react-runtime";
|
||||
if (id.includes("/node_modules/.pnpm/react@")) return "react-runtime";
|
||||
if (id.includes("/node_modules/.pnpm/scheduler@")) return "react-runtime";
|
||||
return undefined;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user