@marko/compiler
Version:
Marko template to JS compiler.
51 lines (49 loc) • 1.43 kB
TypeScript
type EntryKind = "page" | "load";
declare const Config: {
/** `"hydrate"` is deprecated, use `output: "dom", entry: "page"` instead. */
output?: "html" | "dom" | "migrate" | "source" | "hydrate";
entry?: EntryKind;
linkAssets?: {
runtime: string;
onAsset(kind: EntryKind, file: string, id: string): void;
};
errorRecovery?: boolean;
applyFixes?: Map<number, unknown>;
stripTypes?: boolean;
runtimeId?: string | null;
ast?: boolean;
code?: boolean;
writeVersionComment?: boolean;
ignoreUnrecognizedTags?: boolean;
sourceMaps?: boolean | "inline" | "both";
translator?: any;
fileSystem?: Pick<
typeof import("fs"),
"statSync" | "readFileSync" | "readdirSync"
>;
modules?: "esm" | "cjs";
resolveVirtualDependency?:
| ((
filename: string,
dep: { virtualPath: string; code: string; map?: any },
) => string | undefined | null)
| null;
hydrateIncludeImports?: RegExp | ((request: string) => boolean);
hydrateInit?: boolean;
optimize?: boolean;
optimizeKnownTemplates?: string[];
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;