@zakijs/plugin-compiler-alipay
Version:
mor complier plugin for alipay mini program
11 lines (10 loc) • 474 B
TypeScript
import { FileParserOptions, posthtml } from '@morjs/utils';
/**
* 自定义 template 处理
*/
export declare const templateProcessorToAlipay: {
onNode(node: posthtml.Node): void;
onNodeExit(node: posthtml.Node, options: FileParserOptions, context: Record<string, any>): void;
onNodeAttr(attrName: string, node: posthtml.Node): void;
onNodeAttrExit(attrName: string, node: posthtml.Node, options: FileParserOptions, context: Record<string, any>): void;
};