/* eslint-disable no-console */ | |
let printed = {} | |
module.exports = function warnOnce(message) { | |
if (printed[message]) return | |
printed[message] = true | |
if (typeof console !== 'undefined' && console.warn) { | |
console.warn(message) | |
} | |
} | |
/* eslint-disable no-console */ | |
let printed = {} | |
module.exports = function warnOnce(message) { | |
if (printed[message]) return | |
printed[message] = true | |
if (typeof console !== 'undefined' && console.warn) { | |
console.warn(message) | |
} | |
} | |