ccc-tnt-psd2ui/npm-packages/win32-v3.4.+/postcss/lib/warn-once.js
2023-07-24 10:36:46 +08:00

14 lines
256 B
JavaScript

/* 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)
}
}