File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/sandbox/eval/presets/create-react-app-typescript Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import stylesTranspiler from '../../transpilers/css';
44import typescriptTranspiler from '../../transpilers/typescript' ;
55import jsonTranspiler from '../../transpilers/json' ;
66import rawTranspiler from '../../transpilers/raw' ;
7+ import babelTranspiler from '../../transpilers/babel' ;
78
89const preset = new Preset ( 'create-react-app-typescript' , [
910 'web.ts' ,
@@ -22,6 +23,10 @@ preset.registerTranspiler(module => /\.tsx?$/.test(module.path), [
2223 { transpiler : typescriptTranspiler } ,
2324] ) ;
2425
26+ preset . registerTranspiler ( module => / \. j s x ? $ / . test ( module . path ) , [
27+ { transpiler : babelTranspiler } ,
28+ ] ) ;
29+
2530preset . registerTranspiler ( module => / \. j s o n $ / . test ( module . path ) , [
2631 { transpiler : jsonTranspiler } ,
2732] ) ;
You can’t perform that action at this time.
0 commit comments