1 | import { isDevMode } from '@angular/core';
|
2 | const _messagesHash = {};
|
3 | const _hideMsg = typeof console === 'undefined' || !('warn' in console);
|
4 | export function warnOnce(msg) {
|
5 | if (!isDevMode() || _hideMsg || msg in _messagesHash) {
|
6 | return;
|
7 | }
|
8 | _messagesHash[msg] = true;
|
9 | console.warn(msg);
|
10 | }
|
11 | //# sourceMappingURL=warn-once.js.map |
\ | No newline at end of file |