index.js 710 B

12345678910111213141516171819
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. if (process.env.NODE_ENV !== 'production') {
  8. var ReactIs = require('react-is');
  9. // By explicitly using `prop-types` you are opting into new development behavior.
  10. // http://fb.me/prop-types-in-prod
  11. var throwOnDirectAccess = true;
  12. module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);
  13. } else {
  14. // By explicitly using `prop-types` you are opting into new production behavior.
  15. // http://fb.me/prop-types-in-prod
  16. module.exports = require('./factoryWithThrowingShims')();
  17. }