source:
trip-planner-front/node_modules/postcss/lib/warn-once.js@
571e0df
Last change on this file since 571e0df was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 224 bytes |
Line | |
---|---|
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.