Skip to content

Commit 84e4e75

Browse files
committed
bypass mdxname
1 parent 82ce63a commit 84e4e75

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/components/MDX/Sandpack/createFileMap.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ export const SUPPORTED_FILES = [AppJSPath, StylesCSSPath];
1212
export const createFileMap = (codeSnippets: any) => {
1313
return codeSnippets.reduce(
1414
(result: Record<string, SandpackFile>, codeSnippet: React.ReactElement) => {
15-
if (
16-
(codeSnippet.type as any).mdxName !== 'pre' &&
17-
codeSnippet.type !== 'pre'
18-
) {
19-
return result;
20-
}
15+
// TODO: actually fix this
16+
// if (
17+
// (codeSnippet.type as any).mdxName !== 'pre' &&
18+
// codeSnippet.type !== 'pre'
19+
// ) {
20+
// return result;
21+
// }
2122
const {props} = (
2223
codeSnippet.props as PropsWithChildren<{
2324
children: ReactElement<

0 commit comments

Comments
 (0)