UNPKG

@storm-stack/core

Version:

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

59 lines (56 loc) 1.64 kB
import MagicString from 'magic-string'; import { SourceFile } from '../../types/index.cjs'; import '@babel/core'; import '@babel/types'; import '@storm-stack/types/shared/error'; import '@stryke/types/base'; 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'; /** * Get the string from the source. * * @param code - The source string or magic string. * @returns The source string. */ declare function getString(code: string | MagicString): string; /** * Get the magic string. * * @param code - The source string or magic string. * @returns The magic string. */ declare function getMagicString(code: string | MagicString): MagicString; /** * Get the source file. * * @param id - The name of the file. * @param code - The source code. * @returns The source file. */ declare function getSourceFile(id: string, code?: string | MagicString): SourceFile; export { getMagicString, getSourceFile, getString };