marko/packages/compiler/config.d.ts
2023-05-19 10:23:38 -07:00

37 lines
983 B
TypeScript

declare const Config: {
output?: "html" | "dom" | "hydrate" | "migrate" | "source";
stripTypes?: boolean;
runtimeId?: string | null;
ast?: boolean;
code?: boolean;
writeVersionComment?: boolean;
ignoreUnrecognizedTags?: boolean;
sourceMaps?: boolean | "inline" | "both";
translator?: any;
fileSystem?: typeof import("fs");
modules?: "esm" | "cjs";
resolveVirtualDependency?:
| ((
filename: string,
dep: { virtualPath: string; code: string; map?: any }
) => string)
| null;
hydrateIncludeImports?: RegExp | ((request: string) => boolean);
optimize?: boolean;
cache?: Map<unknown, unknown>;
hot?: boolean;
/** @deprecated */
meta?: boolean;
babelConfig?: {
ast?: boolean | null;
code?: boolean | null;
comments?: boolean | null;
compact?: boolean | "auto" | null;
caller?: { name?: string; [x: string]: unknown };
minified?: boolean | null;
[x: string]: unknown;
};
};
export = Config;