diff --git a/.changeset/shy-games-punch.md b/.changeset/shy-games-punch.md new file mode 100644 index 0000000000..1aa8103626 --- /dev/null +++ b/.changeset/shy-games-punch.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix content render imports flow diff --git a/packages/astro/src/content/vite-plugin-content-imports.ts b/packages/astro/src/content/vite-plugin-content-imports.ts index 1c7a80b917..67fb45bcd1 100644 --- a/packages/astro/src/content/vite-plugin-content-imports.ts +++ b/packages/astro/src/content/vite-plugin-content-imports.ts @@ -119,7 +119,7 @@ export function astroContentImportPlugin({ if (settings.contentEntryTypes.some((t) => t.getRenderModule)) { plugins.push({ name: 'astro:content-render-imports', - async load(viteId) { + async transform(_, viteId) { const contentRenderer = getContentRendererByViteId(viteId, settings); if (!contentRenderer) return;