source:
trip-planner-front/node_modules/postcss/lib/warn-once.js@
59329aa
Last change on this file since 59329aa 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.