@lark-project/cli
Version:
飞书项目插件开发工具
15 lines (14 loc) • 413 B
TypeScript
/// <reference types="node" />
import { Compiler } from 'webpack';
interface Option {
regexp: RegExp;
newContent?: string;
}
declare class HotUpdatePlugin {
options: Option;
constructor();
apply(compiler: Compiler): void;
replaceFunctionBody(source: string | Buffer, options: Option): string;
findMatchingBrace(source: string, index: number): number;
}
export default HotUpdatePlugin;