Skip to content

Commit

Permalink
Don't bundle vue
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyFeliz committed Jun 11, 2024
1 parent 2d2fa47 commit 5b8c3ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ export default defineConfig({
entry: path.resolve(__dirname, "src/vue-tweet.vue"),
name: "vue-tweet",
},
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
external: ['vue'],
output: {
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
vue: 'Vue',
},
},
},
},
resolve: {
alias: {
Expand Down

0 comments on commit 5b8c3ab

Please sign in to comment.