source:
frontend/node_modules/postcss/lib/warn-once.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 256 bytes | |
| Line | |
|---|---|
| 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.
