Skip to content

Commit

Permalink
Add vueperslides to noExternal in vue integration (#4639)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Sep 6, 2022
1 parent a32bbe7 commit f08ca00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-boats-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vue': patch
---

Mark vueperslides as a default noExternal
6 changes: 4 additions & 2 deletions packages/integrations/vue/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Options } from '@vitejs/plugin-vue';
import vue from '@vitejs/plugin-vue';
import type { AstroIntegration, AstroRenderer } from 'astro';
import type { UserConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

function getRenderer(): AstroRenderer {
return {
Expand All @@ -10,7 +11,7 @@ function getRenderer(): AstroRenderer {
};
}

function getViteConfiguration(options?: Options) {
function getViteConfiguration(options?: Options): UserConfig {
return {
optimizeDeps: {
include: ['@astrojs/vue/client.js', 'vue'],
Expand All @@ -19,6 +20,7 @@ function getViteConfiguration(options?: Options) {
plugins: [vue(options)],
ssr: {
external: ['@vue/server-renderer'],
noExternal: ['vueperslides']
},
};
}
Expand Down

0 comments on commit f08ca00

Please sign in to comment.