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