mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-23 05:57:57 +01:00
14 lines
425 B
JavaScript
14 lines
425 B
JavaScript
|
|
||
|
// Export the THREE object for **Node.js**, with
|
||
|
// backwards-compatibility for the old `require()` API. If we're in
|
||
|
// the browser, add `_` as a global object via a string identifier,
|
||
|
// for Closure Compiler "advanced" mode.
|
||
|
if (typeof exports !== 'undefined') {
|
||
|
if (typeof module !== 'undefined' && module.exports) {
|
||
|
exports = module.exports = THREE;
|
||
|
}
|
||
|
exports.THREE = THREE;
|
||
|
} else {
|
||
|
this['THREE'] = THREE;
|
||
|
}
|