Skip to content

Commit

Permalink
Fix content render imports flow (#6958)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored May 2, 2023
1 parent a8a319a commit 72c6bf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-games-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix content render imports flow
2 changes: 1 addition & 1 deletion packages/astro/src/content/vite-plugin-content-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 72c6bf0

Please sign in to comment.