Skip to content

Commit 46ab671

Browse files
committed
docs: adjust include content plugin
1 parent e4809e7 commit 46ab671

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/astro-docs/astro.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ function includeContentPlugin() {
1212
name: 'pre-include-content',
1313
enforce: 'pre',
1414
transform(code, id) {
15-
if (!id.includes('?includeContent')) return;
15+
if (!id.includes('?includeContent') || id.includes('astro-entry')) return;
16+
1617
const [filePath] = id.split('?');
1718
const fileContent = readFileSync(filePath, 'utf-8');
1819

0 commit comments

Comments
 (0)