详细说明: - 添加了V2版本的工作流页面和结果页面 - 更新了Serena记忆文件 - 添加了详细实施计划文档 - 优化了Vite配置 - 更新了项目文档CLAUDE.md - 构建了演示系统的dist版本 - 包含了exhibition-demo的完整依赖
21 lines
888 B
TypeScript
21 lines
888 B
TypeScript
import { Module } from "module";
|
|
import { TransformOptions, JITIOptions, JITIImportOptions } from "./types";
|
|
export type { JITIOptions, TransformOptions } from "./types";
|
|
type Require = typeof require;
|
|
type Module = typeof module;
|
|
type ModuleCache = Record<string, Module>;
|
|
export type EvalModuleOptions = Partial<{
|
|
id: string;
|
|
filename: string;
|
|
ext: string;
|
|
cache: ModuleCache;
|
|
}>;
|
|
export interface JITI extends Require {
|
|
transform: (opts: TransformOptions) => string;
|
|
register: () => () => void;
|
|
evalModule: (source: string, options?: EvalModuleOptions) => unknown;
|
|
/** @experimental Behavior of `jiti.import` might change in the future. */
|
|
import: (id: string, importOptions: JITIImportOptions) => Promise<unknown>;
|
|
}
|
|
export default function createJITI(_filename: string, opts?: JITIOptions, parentModule?: Module, parentCache?: ModuleCache): JITI;
|