@omnia/tooling-vue
Version:
Used to bundle and serve manifests web component that build on Vue framework.
12 lines (11 loc) • 572 B
TypeScript
import type { RuntimeContext } from '../typings';
export interface ImportPathReplacer {
from: string | string[];
to(defaultImport: boolean, ctx: RuntimeContext): string;
ignore?: boolean;
}
/** Transform es6 import paths to browser runtime variables */
export declare const importPath: import("../typings").Transformer<"omnia-import-path", [replacers: ImportPathReplacer[]], {
test(code: string, id: string): boolean;
transform(code: string, id: string, fileGraph: import("../typings").FileGraph, ctx: RuntimeContext, fromWorker: boolean): string;
}>;