diff options
author | 2022-09-06 11:11:01 -0400 | |
---|---|---|
committer | 2022-09-06 11:11:01 -0400 | |
commit | f08ca005e28cc7d279535680d5b44495877aa7b6 (patch) | |
tree | 798f64fa6748d11d83706fa67080c9d4697b9f56 | |
parent | a32bbe7289abf3f2cd896969ffc4bbb18e39177b (diff) | |
download | astro-f08ca005e28cc7d279535680d5b44495877aa7b6.tar.gz astro-f08ca005e28cc7d279535680d5b44495877aa7b6.tar.zst astro-f08ca005e28cc7d279535680d5b44495877aa7b6.zip |
Add vueperslides to noExternal in vue integration (#4639)
-rw-r--r-- | .changeset/little-boats-happen.md | 5 | ||||
-rw-r--r-- | packages/integrations/vue/src/index.ts | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/.changeset/little-boats-happen.md b/.changeset/little-boats-happen.md new file mode 100644 index 000000000..ba970324b --- /dev/null +++ b/.changeset/little-boats-happen.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vue': patch +--- + +Mark vueperslides as a default noExternal diff --git a/packages/integrations/vue/src/index.ts b/packages/integrations/vue/src/index.ts index af7f1d175..721f3e0e5 100644 --- a/packages/integrations/vue/src/index.ts +++ b/packages/integrations/vue/src/index.ts @@ -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 { @@ -10,7 +11,7 @@ function getRenderer(): AstroRenderer { }; } -function getViteConfiguration(options?: Options) { +function getViteConfiguration(options?: Options): UserConfig { return { optimizeDeps: { include: ['@astrojs/vue/client.js', 'vue'], @@ -19,6 +20,7 @@ function getViteConfiguration(options?: Options) { plugins: [vue(options)], ssr: { external: ['@vue/server-renderer'], + noExternal: ['vueperslides'] }, }; } |