fix: frontend build

This commit is contained in:
guqing
2022-07-08 16:17:16 +08:00
parent 2259a8838f
commit fad015ee30
5 changed files with 54 additions and 17 deletions

View File

@@ -24,10 +24,11 @@ export default defineConfig({
fileName: () => "main.js",
},
rollupOptions: {
external: ["vue", "@halo-dev/shared", "@halo-dev/components"],
external: ["vue", "@halo-dev/shared", "@halo-dev/components","vue-router"],
output: {
globals: {
vue: "Vue",
"vue-router": "VueRouter",
"@halo-dev/components": "HaloComponents",
"@halo-dev/admin-shared": "HaloAdminShared",
},