method CompilerEventEmitter.prototype.safeEmit CompilerEventEmitter.prototype.safeEmit<K extends keyof EventMap>(eventName: K,event: EventMap[K],): void Safely emit an event, catching any errors thrown by handlers. This prevents user code from breaking the compilation process. Type Parameters K extends keyof EventMap Parameters eventName: K Name of the event to emit event: EventMap[K] Event data to pass to the handler Return Type void