File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
packages/app/src/sandbox/eval/transpilers/babel Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 11import isESModule from '../../utils/is-es-module' ;
22
3- const JSXSyntax = / \n ( .* ?) < \w ( .| \n ) * ?\/ ? > / ;
3+ const JSXSyntax = / \n ( .* ?) < [ A - z ] ( .| \n ) * ?\/ ? > / ;
44
55export function shouldTranspile ( code : string , path : string ) {
66 if ( isESModule ( code ) ) {
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class BabelTranspiler extends WorkerTranspiler {
4747 // dependencies from the file and return the same code. We get the dependencies
4848 // with a regex since commonjs modules just have `require` and regex is MUCH
4949 // faster than generating an AST from the code.
50+ console . log ( path , shouldTranspile ( code , path ) ) ;
5051 if (
5152 ( loaderContext . options . simpleRequire ||
5253 path . startsWith ( '/node_modules' ) ) &&
You can’t perform that action at this time.
0 commit comments