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 08aa5bd commit 83b8161Copy full SHA for 83b8161
src/scripts/concatenate-docs.js
@@ -38,6 +38,7 @@ function getDirectoryRecursive(basePath) {
38
getDirectoryRecursive(fullPath);
39
} else if (fullPath.endsWith('.mdx')) {
40
// import the respective mdx file
41
+ // prefix a `W` to prevent filename like 12345.mdx
42
const basename = path
43
.basename(file, '.mdx')
44
.split('-')
@@ -46,9 +47,9 @@ function getDirectoryRecursive(basePath) {
46
47
fileContents[fileContents.length] = {
48
...front(fs.readFileSync(fullPath).toString()),
49
body: `
-import ${basename} from './${file}'
50
+import W${basename} from './${file}'
51
-<${basename} />
52
+<W${basename} />
53
`,
54
};
55
}
0 commit comments