@intlayer/config
Version:
Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
19 lines (18 loc) • 911 B
TypeScript
import * as _$esbuild from "esbuild";
import { BuildOptions } from "esbuild";
//#region src/loadExternalFile/transpileTSToCJS.d.ts
type TranspileOptions = BuildOptions & {
/**
* Optional custom esbuild instance to use for transpilation.
* Useful in environments (e.g. VS Code extensions) where the bundled
* esbuild binary may not match the host platform.
* When provided, its `buildSync`/`build` methods are used instead of
* the ones imported from the `esbuild` package.
*/
esbuildInstance?: typeof _$esbuild;
};
declare const transpileTSToCJSSync: (code: string, filePath: string, options?: TranspileOptions) => string | undefined;
declare const transpileTSToCJS: (code: string, filePath: string, options?: TranspileOptions) => Promise<string | undefined>;
//#endregion
export { TranspileOptions, transpileTSToCJS, transpileTSToCJSSync };
//# sourceMappingURL=transpileTSToCJS.d.ts.map