UNPKG

@marko/vite

Version:
15 lines (14 loc) 488 B
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[];