This commit is contained in:
20
node_modules/tiny-warning/dist/tiny-warning.esm.js
generated
vendored
Normal file
20
node_modules/tiny-warning/dist/tiny-warning.esm.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var isProduction = process.env.NODE_ENV === 'production';
|
||||
function warning(condition, message) {
|
||||
if (!isProduction) {
|
||||
if (condition) {
|
||||
return;
|
||||
}
|
||||
|
||||
var text = "Warning: " + message;
|
||||
|
||||
if (typeof console !== 'undefined') {
|
||||
console.warn(text);
|
||||
}
|
||||
|
||||
try {
|
||||
throw Error(text);
|
||||
} catch (x) {}
|
||||
}
|
||||
}
|
||||
|
||||
export default warning;
|
||||
Reference in New Issue
Block a user