13 lines
256 B
JavaScript
Executable file
13 lines
256 B
JavaScript
Executable file
/* eslint-disable no-console */
|
|
'use strict'
|
|
|
|
let printed = {}
|
|
|
|
module.exports = function warnOnce(message) {
|
|
if (printed[message]) return
|
|
printed[message] = true
|
|
|
|
if (typeof console !== 'undefined' && console.warn) {
|
|
console.warn(message)
|
|
}
|
|
}
|