Skip to content

Commit 0bbea62

Browse files
committed
docs: make sure post-include-content filter out the same things
1 parent 46ab671 commit 0bbea62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/astro-docs/astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function includeContentPlugin() {
1111
{
1212
name: 'pre-include-content',
1313
enforce: 'pre',
14-
transform(code, id) {
14+
transform(_, id) {
1515
if (!id.includes('?includeContent') || id.includes('astro-entry')) return;
1616

1717
const [filePath] = id.split('?');
@@ -25,7 +25,7 @@ function includeContentPlugin() {
2525
name: 'post-include-content',
2626
enforce: 'post',
2727
transform(code, id) {
28-
if (!id.includes('?includeContent')) return;
28+
if (!id.includes('?includeContent') || id.includes('astro-entry')) return;
2929
const [filePath] = id.split('?');
3030
const fileContent = map.get(filePath);
3131

0 commit comments

Comments
 (0)