diff options
author | 2023-05-02 23:21:44 +0800 | |
---|---|---|
committer | 2023-05-02 23:21:44 +0800 | |
commit | 72c6bf01fe49b331ca8ad9206a7506b15caf5b8d (patch) | |
tree | 7bf4632ecdde63c0dfab03d4e38cbfdb4dc11422 | |
parent | a8a319aef744a64647ee16c7d558d74de6864c6c (diff) | |
download | astro-72c6bf01fe49b331ca8ad9206a7506b15caf5b8d.tar.gz astro-72c6bf01fe49b331ca8ad9206a7506b15caf5b8d.tar.zst astro-72c6bf01fe49b331ca8ad9206a7506b15caf5b8d.zip |
Fix content render imports flow (#6958)
-rw-r--r-- | .changeset/shy-games-punch.md | 5 | ||||
-rw-r--r-- | packages/astro/src/content/vite-plugin-content-imports.ts | 2 |
2 files changed, 6 insertions, 1 deletions
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; |