From 72c6bf01fe49b331ca8ad9206a7506b15caf5b8d Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 2 May 2023 23:21:44 +0800 Subject: [PATCH] Fix content render imports flow (#6958) --- .changeset/shy-games-punch.md | 5 +++++ packages/astro/src/content/vite-plugin-content-imports.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/shy-games-punch.md 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;