@marko/vite
Version:
A Marko plugin for Vite
15 lines (14 loc) • 488 B
TypeScript
import * as compiler from "@marko/compiler";
import type * as vite from "vite";
export declare namespace API {
type getMarkoAssetCodeForEntry = (id: string) => string | void;
}
export interface Options {
linked?: boolean;
runtimeId?: string;
translator?: string;
basePathVar?: string;
babelConfig?: compiler.Config["babelConfig"];
isEntry?: (importee: string, importer: string) => boolean;
}
export default function markoPlugin(opts?: Options): vite.Plugin[];