react-bootstrap
Version:
Bootstrap 3 components build with React
20 lines (16 loc) • 545 B
JavaScript
define(['exports', 'module'], function (exports, module) {
'use strict';
module.exports = deprecationWarning;
function deprecationWarning(oldname, newname, link) {
if (process.env.NODE_ENV !== 'production') {
if (typeof console === 'undefined' || typeof console.warn !== 'function') {
return;
}
var message = '' + oldname + ' is deprecated. Use ' + newname + ' instead.';
console.warn(message);
if (link) {
console.warn('You can read more about it here ' + link);
}
}
}
});