From 89fa0a56188380e3843c354b2ed823157ee924f5 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Fri, 24 Jun 2022 14:04:27 -0400 Subject: [PATCH] fix: add astro/components to noExternal for Code component --- packages/astro/src/core/create-vite.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index bc6e58a9c..41eac3452 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -96,6 +96,9 @@ export async function createVite( ], conditions: ['astro'], }, + ssr: { + noExternal: ['astro', 'astro/components'], + } }; // Merge configs: we merge vite configuration objects together in the following order,