@storm-stack/core
Version:
A build toolkit and runtime used by Storm Software in TypeScript applications
76 lines (73 loc) • 2.98 kB
text/typescript
import { L as LogFn, C as Context, e as SourceFile, f as ResolvedBabelOptions, g as ResolvedBabelPluginItem, h as BabelInputOptions } from '../babel-C68ay88r.cjs';
import '@babel/core';
import '@stryke/types/base';
import 'magic-string';
import '@storm-software/config-tools/types';
import '@stryke/types/configuration';
import 'esbuild';
import 'hookable';
import 'vite';
import '@rspack/core';
import '@storm-software/build-tools/types';
import '@storm-software/config/types';
import '@storm-software/esbuild/types';
import '@storm-software/unbuild/types';
import 'c12';
import 'rolldown';
import 'rollup';
import 'webpack';
import '@storm-stack/core/deepkit/type';
import '@stryke/env/get-env-paths';
import '@stryke/types/package-json';
import 'jest-worker';
import 'jiti';
import 'unimport';
import '../reflection-DTM1oT21.cjs';
import '@stryke/capnp';
import 'semver';
import '../tsconfig-DWrxucuq.cjs';
import '@stryke/types/tsconfig';
import 'typescript';
import 'memfs';
import 'node:fs';
import 'unionfs';
/**
* Resolves the plugins for [Babel](https://babeljs.io/).
*
* @param log - The logging function to use.
* @param context - The context of the transformation.
* @param sourceFile - The source file to transform.
* @param options - The options for the transformation.
* @returns The resolved Babel plugins.
*/
declare function resolveBabelPlugins(log: LogFn, context: Context, sourceFile?: SourceFile, options?: Partial<ResolvedBabelOptions>): ResolvedBabelPluginItem[];
/**
* Resolves the presets for [Babel](https://babeljs.io/).
*
* @param log - The logging function to use.
* @param context - The context of the transformation.
* @param sourceFile - The source file to transform.
* @param options - The options for the transformation.
* @returns The resolved Babel presets.
*/
declare function resolveBabelPresets(log: LogFn, context: Context, sourceFile?: SourceFile, options?: Partial<ResolvedBabelOptions>): ResolvedBabelPluginItem[];
/**
* Resolves the options for [Babel](https://babeljs.io/).
*
* @param context - The context for the transformation.
* @param options - The options for the transformation.
* @param plugins - The Babel plugins to use.
* @param presets - The Babel presets to use.
* @returns The resolved Babel options.
*/
declare function resolveBabelInputOptions(context: Context, options?: Partial<ResolvedBabelOptions>, plugins?: ResolvedBabelPluginItem[], presets?: ResolvedBabelPluginItem[]): BabelInputOptions;
/**
* Resolves the options for [Babel](https://babeljs.io/).
*
* @param context - The context for the transformation.
* @param log - The logging function to use.
* @param options - The options for the transformation.
* @returns The resolved Babel options.
*/
declare function resolveBabelOptions(context: Context, log?: LogFn, options?: Partial<ResolvedBabelOptions>): BabelInputOptions;
export { resolveBabelInputOptions, resolveBabelOptions, resolveBabelPlugins, resolveBabelPresets };