source:
node_modules/postcss/lib/warn-once.js
Last change on this file was 57e58a3, checked in by , 4 months ago | |
---|---|
|
|
File size: 256 bytes |
Rev | Line | |
---|---|---|
[57e58a3] | 1 | /* eslint-disable no-console */ |
2 | 'use strict' | |
3 | ||
4 | let printed = {} | |
5 | ||
6 | module.exports = function warnOnce(message) { | |
7 | if (printed[message]) return | |
8 | printed[message] = true | |
9 | ||
10 | if (typeof console !== 'undefined' && console.warn) { | |
11 | console.warn(message) | |
12 | } | |
13 | } |
Note:
See TracBrowser
for help on using the repository browser.