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 46ab671 commit 0bbea62Copy full SHA for 0bbea62
apps/astro-docs/astro.config.mjs
@@ -11,7 +11,7 @@ function includeContentPlugin() {
11
{
12
name: 'pre-include-content',
13
enforce: 'pre',
14
- transform(code, id) {
+ transform(_, id) {
15
if (!id.includes('?includeContent') || id.includes('astro-entry')) return;
16
17
const [filePath] = id.split('?');
@@ -25,7 +25,7 @@ function includeContentPlugin() {
25
name: 'post-include-content',
26
enforce: 'post',
27
transform(code, id) {
28
- if (!id.includes('?includeContent')) return;
+ if (!id.includes('?includeContent') || id.includes('astro-entry')) return;
29
30
const fileContent = map.get(filePath);
31
0 commit comments