aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tapable/lib/util-browser.js
blob: ee4fb9a05da473501c510f66c428cdfd07f1513d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
"use strict";

exports.deprecate = (fn, msg) => {
	let once = true;
	return function() {
		if (once) {
			console.warn("DeprecationWarning: " + msg);
			once = false;
		}
		return fn.apply(this, arguments);
	};
};