| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 | | "use strict"; |  |   |  | const babelP = import("./lib/index.js"); |  |   |  | const functionNames = [ |  |   "createConfigItem", |  |   "loadPartialConfig", |  |   "loadOptions", |  |   "transform", |  |   "transformFile", |  |   "transformFromAst", |  |   "parse", |  | ]; |  |   |  | for (const name of functionNames) { |  |   exports[`${name}Sync`] = function () { |  |     throw new Error( |  |       `"${name}Sync" is not supported when loading @babel/core using require()` |  |     ); |  |   }; |  |   exports[name] = function (...args) { |  |     babelP.then(babel => { |  |       babel[name](...args); |  |     }); |  |   }; |  |   exports[`${name}Async`] = function (...args) { |  |     return babelP.then(babel => babel[`${name}Async`](...args)); |  |   }; |  | } | 
 |