Skip to content

Commit

Permalink
Make sure vue-router is an external dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pleek91 committed May 23, 2022
1 parent d30ca34 commit 532106d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineConfig(({ mode }) => {
},
rollupOptions: {
// ensures vue isn't added to the bundle
external: ['vue'],
external: ['vue', 'vue-router'],
output: {
exports: 'named',
// Provide vue as a global variable to use in the UMD build
Expand Down

0 comments on commit 532106d

Please sign in to comment.