shim.js 351 B

123456789101112
  1. var THREE = require('three');
  2. console.warn( "WARNING: The 'three.js' npm package is deprecated in favor of the 'three' npm package, please upgrade.");
  3. if (typeof exports !== 'undefined') {
  4. if (typeof module !== 'undefined' && module.exports) {
  5. exports = module.exports = THREE;
  6. }
  7. exports.THREE = THREE;
  8. } else {
  9. this['THREE'] = THREE;
  10. }