[Bug]: "the name Tabs
is defined multiple" when flattening Mdx files
#1071
Labels
Tabs
is defined multiple" when flattening Mdx files
#1071
Version
Details
Rspress uses
flattenMdxContent
to inline one mdx to another mdx file. However, this function currently has some bugs.rspress/packages/core/src/node/utils/flattenMdxContent.ts
Line 59 in 5121cac
case 1
rspress uses
flattenMdxContent
to inline "a.mdx" into "index.mdx" for better analysisCase 2
same error
Possible Solution
We need to refactor this function and find the best solution to combine two mdx fragments into one, just like concatenation module or scope hoisting
https://webpack.js.org/plugins/module-concatenation-plugin/#root
Reproduce link
https://github.com/SoonIter/rspress-mdx-flatten
Reproduce Steps
The text was updated successfully, but these errors were encountered: