diff --git a/packages/astro/src/core/compile/compile.ts b/packages/astro/src/core/compile/compile.ts index 0e169962e..5e1cad1be 100644 --- a/packages/astro/src/core/compile/compile.ts +++ b/packages/astro/src/core/compile/compile.ts @@ -69,12 +69,6 @@ export async function compile({ }); } - if (viteConfig.mode === 'development') { - transformResult.clientOnlyComponents.forEach((component) => { - transformResult.code += `\nimport '${component.specifier}';\n`; - }); - } - handleCompileResultErrors(transformResult, cssTransformErrors); return {