UNPKG

@storm-stack/core

Version:

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

67 lines (63 loc) 2.36 kB
export { parseAst } from './ast.js'; export { addPluginFilter, filterPluginByRuntimeId, findExport, getPluginName, isDuplicatePlugin, listExports } from './helpers.js'; export { resolveBabelInputOptions, resolveBabelOptions, resolveBabelPlugins, resolveBabelPresets } from './options.js'; import * as _babel_core from '@babel/core'; import { PluginAPI, PluginPass } from '@babel/core'; import { s as BabelPluginOptions, C as Context } from '../babel-CtjWp6AQ.js'; export { transform } from './transform.js'; import '@babel/parser'; import '@babel/types'; 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.js'; import '@stryke/capnp'; import 'semver'; import '../tsconfig-DWrxucuq.js'; import '@stryke/types/tsconfig'; import 'typescript'; import 'memfs'; 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 };