Debian Codegraph @

packages/babel-core/src/config/files/index.ts

raw ◀ ▶
1 Debian patch touch this file
1 type indexBrowserType = typeof import("./index-browser");
2 type indexType = typeof import("./index");
3
4 // Kind of gross, but essentially asserting that the exports of this module are the same as the
5 // exports of index-browser, since this file may be replaced at bundle time with index-browser.
•6 ({}) as any as indexBrowserType as indexType;
7
8 export { findPackageData } from "./package";
9
10 export {
11 findConfigUpwards,
12 findRelativeConfig,
13 findRootConfig,
14 loadConfig,
15 resolveShowConfigPath,
16 ROOT_CONFIG_FILENAMES,
17 } from "./configuration";
18 export type {
19 ConfigFile,
20 IgnoreFile,
21 RelativeConfig,
22 FilePackageData,
23 } from "./types";
24 export { loadPlugin, loadPreset } from "./plugins";
25
26 import gensync from "gensync";
27 import * as plugins from "./plugins";
28
29 export const resolvePlugin = gensync(plugins.resolvePlugin).sync;
30 export const resolvePreset = gensync(plugins.resolvePreset).sync;