let errorOnce = (_: string) => {} if (process.env.NODE_ENV !== 'production') { const errors = new Set() errorOnce = (msg: string) => { if (!errors.has(msg)) { console.error(msg) } errors.add(msg) } } export { errorOnce }