three.cjs 631 B

1234567891011121314151617
  1. /**
  2. * @license
  3. * Copyright 2010-2026 Three.js Authors
  4. * SPDX-License-Identifier: MIT
  5. *
  6. * The CommonJS build of three is deprecated. three is ESM-only going forward;
  7. * this entry now re-exports the ES module via require(esm) and will be removed
  8. * in a future release.
  9. *
  10. * Replace `require('three')` with `import * as THREE from 'three'`.
  11. */
  12. process.emitWarning(
  13. '`require("three")` is deprecated and will be removed.\n' +
  14. 'Replace `const THREE = require("three")` with `import * as THREE from "three"`.',
  15. { type: 'DeprecationWarning', code: 'THREE_CJS_DEPRECATED' }
  16. );
  17. module.exports = require( './three.module.js' );
粤ICP备19079148号