diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index 03e53b34e..8d87620af 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -6,7 +6,6 @@ import { builtinModules, createRequire } from 'module'; import { fileURLToPath } from 'url'; import vite from './vite.js'; import astroVitePlugin from '../vite-plugin-astro/index.js'; -import externalVitePlugin from '../vite-plugin-external/index.js'; import astroPostprocessVitePlugin from '../vite-plugin-astro-postprocess/index.js'; import configAliasVitePlugin from '../vite-plugin-config-alias/index.js'; import markdownVitePlugin from '../vite-plugin-markdown/index.js'; @@ -55,7 +54,6 @@ export async function createVite(inlineConfig: ViteConfigWithSSR, { astroConfig, exclude: [...ALWAYS_EXTERNAL], }, plugins: [ - externalVitePlugin({ config: astroConfig }), configAliasVitePlugin({ config: astroConfig }), astroVitePlugin({ config: astroConfig, devServer, logging }), markdownVitePlugin({ config: astroConfig, devServer }), diff --git a/packages/astro/src/vite-plugin-external/index.ts b/packages/astro/src/vite-plugin-external/index.ts deleted file mode 100644 index 7370191fe..000000000 --- a/packages/astro/src/vite-plugin-external/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type vite from '../core/vite'; -import type { AstroConfig } from '../@types/astro'; - -interface AstroPluginOptions { - config: AstroConfig; -} - -/** Transform .astro files for Vite */ -export default function astro({ config }: AstroPluginOptions): vite.Plugin { - return { - name: '@astrojs/vite-plugin-external', - enforce: 'pre', - resolveId(source, importer, options) { - if (source.includes('.config.')) { - console.log({ source, importer, options }); - } - return null; - }, - }; -}