Fix content render imports flow (#6958)

This commit is contained in:
Bjorn Lu 2023-05-02 23:21:44 +08:00 committed by GitHub
parent a8a319aef7
commit 72c6bf01fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix content render imports flow

View file

@ -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;