diff --git a/.changeset/shy-games-punch.md b/.changeset/shy-games-punch.md new file mode 100644 index 000000000..1aa810362 --- /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 1c7a80b91..67fb45bcd 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;