visilog
Version:
Stream browser console logs to files for LLM debugging. Zero-config setup with simple imports. No MCP required - just tell your LLM to read the log files.
47 lines • 1.56 kB
TypeScript
import type { PluginConfig } from '../types';
interface Compiler {
hooks: {
environment: {
tap: (name: string, fn: () => void) => void;
};
beforeCompile: {
tapAsync: (name: string, fn: (compilation: any, callback: () => void) => void) => void;
};
compilation: {
tap: (name: string, fn: (compilation: any) => void) => void;
};
normalModuleFactory: {
tap: (name: string, fn: (nmf: any) => void) => void;
};
afterEnvironment: {
tap: (name: string, fn: () => void) => void;
};
done: {
tapAsync: (name: string, fn: (stats: any, callback: () => void) => void) => void;
};
shutdown: {
tapAsync: (name: string, fn: (callback: () => void) => void) => void;
};
};
options: {
mode?: string;
devServer?: any;
};
}
interface WebpackPluginInstance {
apply(compiler: Compiler): void;
}
export declare class WebSocketLoggerWebpackPlugin implements WebpackPluginInstance {
private loggerServer;
private config;
private isDevelopment;
constructor(config?: PluginConfig);
apply(compiler: Compiler): void;
private injectClientScript;
private generateClientScript;
private getClientModulePath;
private getHtmlWebpackPlugin;
}
export declare function createWebpackPlugin(config?: PluginConfig): WebSocketLoggerWebpackPlugin;
export default WebSocketLoggerWebpackPlugin;
//# sourceMappingURL=webpack-plugin.d.ts.map