We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4809e7 commit 46ab671Copy full SHA for 46ab671
apps/astro-docs/astro.config.mjs
@@ -12,7 +12,8 @@ function includeContentPlugin() {
12
name: 'pre-include-content',
13
enforce: 'pre',
14
transform(code, id) {
15
- if (!id.includes('?includeContent')) return;
+ if (!id.includes('?includeContent') || id.includes('astro-entry')) return;
16
+
17
const [filePath] = id.split('?');
18
const fileContent = readFileSync(filePath, 'utf-8');
19
0 commit comments