UNPKG

@storm-stack/core

Version:

A build toolkit and runtime used by Storm Software in TypeScript applications

47 lines (44 loc) 1.46 kB
import { LogFn, Context, SourceFile, CompilerOptions } from '../../types/index.cjs'; import '@babel/core'; import '@babel/types'; import '@storm-stack/types/shared/error'; import '@stryke/types/base'; import 'magic-string'; import '@storm-software/config-tools/types'; import '@stryke/types/configuration'; import 'hookable'; import '@storm-software/build-tools/types'; import '@storm-software/config/types'; import '@storm-software/esbuild/types'; import '@storm-software/unbuild/types'; import 'c12'; import 'esbuild'; import 'unbuild'; import '@deepkit/type'; import '../../reflection-DTM1oT21.cjs'; import '@stryke/capnp'; import '@storm-stack/types/shared/log'; import '@stryke/env/get-env-paths'; import '@stryke/types/package-json'; import 'jest-worker'; import 'jiti'; import 'memfs'; import 'unimport'; import '../../types/tsconfig.cjs'; import '@stryke/types/tsconfig'; import 'typescript'; import '../../types/vfs.cjs'; import 'memfs/lib/volume'; import 'node:fs'; import 'unionfs'; /** * Transform the code using the Storm Stack Babel plugin. * * @param log - The logging function to use. * @param context - The context of the transformation. * @param source - The source file to transform. * @param options - The options for the transformation. * @returns The transformed source file. */ declare function transform(log: LogFn, context: Context, source: SourceFile, options?: CompilerOptions): Promise<SourceFile>; export { transform };