import { setMaxListeners as nodeSetMaxListeners } from 'node:events';
/**
 * Create a setMaxListeners that doesn't break browser usage
 */
export const setMaxListeners = (n, ...eventTargets) => {
    try {
        nodeSetMaxListeners(n, ...eventTargets);
    }
    catch {
        // swallow error, gulp
    }
};
//# sourceMappingURL=events.js.map