| 139 | }; |
| 140 | |
| 141 | const getTSTranspiler = loopProtectOptions => async challengeFile => { |
| 142 | await loadBabel(); |
| 143 | const babelOptions = getBabelOptions(presetsJS, loopProtectOptions); |
| 144 | return flow( |
| 145 | partial(transformContents, compileTypeScriptCode), |
| 146 | partial(transformContents, babelTransformCode(babelOptions)) |
| 147 | )(challengeFile); |
| 148 | }; |
| 149 | |
| 150 | const getTSXModuleTranspiler = loopProtectOptions => async challengeFile => { |
| 151 | await loadBabel(); |
no test coverage detected