source: frontend/node_modules/tapable/lib/util-browser.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 422 bytes
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5"use strict";
6
7module.exports.deprecate = (fn, msg) => {
8 let once = true;
9 return function deprecate() {
10 if (once) {
11 // eslint-disable-next-line no-console
12 console.warn(`DeprecationWarning: ${msg}`);
13 once = false;
14 }
15 // eslint-disable-next-line prefer-rest-params
16 return fn.apply(this, arguments);
17 };
18};
Note: See TracBrowser for help on using the repository browser.