ccc-tnt-psd2ui/npm-packages/mac-v3.4.+/postcss/lib/warn-once.js

14 lines
256 B
JavaScript
Raw Normal View History

2023-07-24 03:13:08 +00:00
/* 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)
}
}