MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / loadBabel

Function loadBabel

packages/challenge-builder/src/transformers.js:48–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46let presetsJS, presetsJSX;
47
48async function loadBabel() {
49 if (Babel) return;
50 Babel = await import(
51 /* webpackChunkName: "@babel/standalone" */ '@babel/standalone'
52 );
53 Babel.registerPlugin(
54 'loopProtection',
55 protect(protectTimeout, loopProtectCB, loopsPerTimeoutCheck)
56 );
57 Babel.registerPlugin(
58 'testLoopProtection',
59 protect(testProtectTimeout, testLoopProtectCB, testLoopsPerTimeoutCheck)
60 );
61}
62
63async function loadPresetEnv() {
64 if (!presetEnv)

Callers 6

getJSTranspilerFunction · 0.85
getJSXTranspilerFunction · 0.85
getJSXModuleTranspilerFunction · 0.85
getTSTranspilerFunction · 0.85
getTSXModuleTranspilerFunction · 0.85
transformScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected