UNPKG

reboost

Version:

A super fast dev server for rapid web development

20 lines (19 loc) 924 B
import { RawSourceMap } from 'source-map'; import * as estreeToolkit from 'estree-toolkit'; import { ReboostPlugin, PluginContext, ReboostInstance } from '../index'; export declare const getPluginHooks: (instance: ReboostInstance) => { stopHooks: ReboostPlugin['stop'][]; resolveHooks: ReboostPlugin['resolve'][]; loadHooks: ReboostPlugin['load'][]; transformContentHooks: ReboostPlugin['transformContent'][]; transformIntoJSHooks: ReboostPlugin['transformIntoJS'][]; transformJSContentHooks: ReboostPlugin['transformJSContent'][]; transformASTHooks: ReboostPlugin['transformAST'][]; }; export declare const createProcessor: (instance: ReboostInstance) => { process: (filePath: string, pluginContext: PluginContext) => Promise<{ programPath?: estreeToolkit.NodePath<estreeToolkit.types.Program>; sourceMap?: RawSourceMap; error?: string; }>; };