UNPKG

@storm-stack/core

Version:

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

66 lines (62 loc) 2.35 kB
export { GenerateFromAstOptions, __ΩGenerateFromAstOptions, generateFromAst, parseAst } from './ast.cjs'; export { findExport, getImport, isImportCall, listExports, listImports } from './module.cjs'; import * as _babel_core from '@babel/core'; import { PluginAPI, PluginPass } from '@babel/core'; import { BabelPluginOptions, Context } from '../../types/index.cjs'; export { transform } from './transform.cjs'; export { GeneratorResult } from '@babel/generator'; import '@babel/parser'; 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'; type BuiltinExtendPluginOptions = BabelPluginOptions & { /** * The names of the built-in classes that should be extended. * * @remarks * This is used to determine which classes should be transformed. * * @defaultValue ["Error"] */ globals?: string[]; /** * Whether to use the approximate behavior of extending built-ins. * * @remarks * This is used to determine whether to use the approximate helper or the full helper. * * @defaultValue true */ approximate?: boolean; }; declare const BuiltinExtendPlugin: (api: PluginAPI, options: BuiltinExtendPluginOptions, dirname: string) => _babel_core.PluginObject<PluginPass<BuiltinExtendPluginOptions> & PluginPass<object>>; declare function ModuleResolverPlugin(context: Context): (api: PluginAPI, options: object, dirname: string) => _babel_core.PluginObject<object & PluginPass<object>>; export { BuiltinExtendPlugin, ModuleResolverPlugin };