This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/postcss/lib/warn-once.js
2020-11-01 22:46:04 +00:00

13 lines
225 B
JavaScript

'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)
}
}