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 5822741 commit c53a4fcCopy full SHA for c53a4fc
beta/src/components/MDX/Sandpack/createFileMap.ts
@@ -10,8 +10,8 @@ export const createFileMap = (
10
snippetTargetLanguage: SnippetTargetLanguage
11
) => {
12
let hasTSVersion = false;
13
- const isTSFile = (filePath: string) => /\.(mts|ts|tsx)$/.test(filePath);
14
- const isJSFile = (filePath: string) => /\.(mjs|js|jsx)$/.test(filePath);
+ const isTSFile = (filePath: string) => /\.(ts|tsx)$/.test(filePath);
+ const isJSFile = (filePath: string) => /\.(js|jsx)$/.test(filePath);
15
16
const fileMap = codeSnippets.reduce<Record<string, SandpackFile>>(
17
(result, codeSnippet) => {
0 commit comments