We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e34988 commit 9f4744eCopy full SHA for 9f4744e
packages/app/src/sandbox/eval/transpilers/babel/check.js
@@ -1,6 +1,6 @@
1
import isESModule from '../../utils/is-es-module';
2
3
-const JSXSyntax = /<\w/;
+const JSXSyntax = /<\w(.|\n)*\/?>/;
4
5
export function shouldTranspile(code: string, path: string) {
6
return isESModule(code) || JSXSyntax.test(code);
0 commit comments