index.cjs 417 B

12345678910111213141516
  1. /*eslint-env node*/
  2. "use strict";
  3. const path = require("path");
  4. // If in 'production' mode, use the combined/minified/optimized version of Cesium
  5. if (process.env.NODE_ENV === "production") {
  6. // eslint-disable-next-line global-require
  7. module.exports = require(path.join(__dirname, "Build/Cesium/index.cjs"));
  8. return;
  9. }
  10. module.exports = require(path.join(
  11. __dirname,
  12. "Build/CesiumUnminified/index.cjs"
  13. ));