@marko/vite
Version:
A Marko plugin for Vite
21 lines (20 loc) • 755 B
TypeScript
import * as compiler from "@marko/compiler";
import type * as vite from "vite";
export declare namespace API {
/**
* @deprecated This api targets the legacy asset orchestration and will be
* removed in a future release. Providing it opts the plugin out of the
* Marko compiler's built-in asset orchestration (the `linkAssets` compiler
* option).
*/
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[];