Skip to content

Commit fef07d6

Browse files
docs: avoid pipe character in codeSplitting example to fix broken rendering (#8391)
Closed #8380 The root cause: when typedoc processes `{@include}` content, it re-parses it as a JSDoc comment. The `|` character inside the included markdown gets URL-encoded to `%7C` during this process (typedoc's inline tag handling interprets `|` specially). Since the pipe was inside a code block in the markdown, it shouldn't have been modified, but typedoc's JSDoc parser mangles it before the markdown code block structure is recognized. Avoiding `|` in `@include`-d files sidesteps this typedoc limitation.
1 parent 62fe92f commit fef07d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rolldown/src/options/docs/output-code-splitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig({
1212
},
1313
{
1414
name: 'ui-vendor',
15-
test: /node_modules[\\/](antd|@mui)/,
15+
test: /node_modules[\\/]antd/,
1616
priority: 15,
1717
},
1818
{

0 commit comments

Comments
 (0)