From 850cc19fda8e092c1a5fcbd7abfe7c7a0e15629c Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Wed, 19 Oct 2022 12:32:06 -0500 Subject: [PATCH] chore(vue): automatically add `vuetify` to `ssr.noExternal` (#5126) Co-authored-by: Nate Moore --- .changeset/silly-windows-sin.md | 5 +++++ packages/integrations/vue/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/silly-windows-sin.md diff --git a/.changeset/silly-windows-sin.md b/.changeset/silly-windows-sin.md new file mode 100644 index 000000000000..e7f949d59cb6 --- /dev/null +++ b/.changeset/silly-windows-sin.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vue': patch +--- + +Automatically add `vuetify` to `vite.ssr.noExternal` diff --git a/packages/integrations/vue/src/index.ts b/packages/integrations/vue/src/index.ts index f7cf10fbd5ec..a8fb1da2570f 100644 --- a/packages/integrations/vue/src/index.ts +++ b/packages/integrations/vue/src/index.ts @@ -62,7 +62,7 @@ async function getViteConfiguration(options?: Options): Promise { plugins: [vue(options), virtualAppEntrypoint(options)], ssr: { external: ['@vue/server-renderer'], - noExternal: ['vueperslides'], + noExternal: ['vuetify', 'vueperslides'], }, };