MCPcopy
hub / github.com/vitejs/vite / loadBabel

Function loadBabel

packages/plugin-legacy/src/index.ts:33–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31// lazy load babel since it's not used during dev
32let babel: Promise<typeof import('@babel/core')> | undefined
33async function loadBabel() {
34 return (babel ??= import('@babel/core'))
35}
36
37// The requested module 'browserslist' is a CommonJS module
38// which may not support all module.exports as named exports

Callers 2

renderChunkFunction · 0.85
detectPolyfillsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected