Initial commit
This commit is contained in:
22
node_modules/motion-utils/dist/cjs/index.js
generated
vendored
Normal file
22
node_modules/motion-utils/dist/cjs/index.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
const noop = (any) => any;
|
||||
|
||||
exports.warning = noop;
|
||||
exports.invariant = noop;
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
exports.warning = (check, message) => {
|
||||
if (!check && typeof console !== "undefined") {
|
||||
console.warn(message);
|
||||
}
|
||||
};
|
||||
exports.invariant = (check, message) => {
|
||||
if (!check) {
|
||||
throw new Error(message);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
exports.noop = noop;
|
||||
Reference in New Issue
Block a user