Fix content render imports flow (#6958)
This commit is contained in:
parent
a8a319aef7
commit
72c6bf01fe
2 changed files with 6 additions and 1 deletions
5
.changeset/shy-games-punch.md
Normal file
5
.changeset/shy-games-punch.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix content render imports flow
|
|
@ -119,7 +119,7 @@ export function astroContentImportPlugin({
|
||||||
if (settings.contentEntryTypes.some((t) => t.getRenderModule)) {
|
if (settings.contentEntryTypes.some((t) => t.getRenderModule)) {
|
||||||
plugins.push({
|
plugins.push({
|
||||||
name: 'astro:content-render-imports',
|
name: 'astro:content-render-imports',
|
||||||
async load(viteId) {
|
async transform(_, viteId) {
|
||||||
const contentRenderer = getContentRendererByViteId(viteId, settings);
|
const contentRenderer = getContentRendererByViteId(viteId, settings);
|
||||||
if (!contentRenderer) return;
|
if (!contentRenderer) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue