vite-plugin-dom
Version:
Enables DOM manipulation and comment injection during the build process
13 lines (12 loc) • 592 B
TypeScript
import type { Plugin } from 'vite';
import type { DomOptions } from './types.js';
/**
* Vite plugin for DOM manipulation and comment injection.
*
* @param options - The options for the DOM plugin.
* @returns Vite plugin configuration object.
*/
export default function pluginDom({ applyOnMode, comments, handler, onComplete, ...domHandlerOptions }?: DomOptions): Plugin;
export * from './types.js';
export { domHas } from './utils.js';
export { Comment, Text, CDATA, DataNode, Document, Element, Node, NodeWithChildren, type AnyNode, type ChildNode, type ParentNode } from 'domhandler';