Browse Source

chore: rollup external vue-router

richard1015 4 years ago
parent
commit
366ea65ca8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vite.config.build.ts

+ 1 - 1
vite.config.build.ts

@@ -26,7 +26,7 @@ export default defineConfig({
   build: {
     rollupOptions: {
       // 请确保外部化那些你的库中不需要的依赖
-      external: ['vue'],
+      external: ['vue', 'vue-router'],
       output: {
         banner,
         // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量