Closed msimpson closed 7 years ago
While this library has module loader support by way of:
// Module loader support: if ( typeof define === 'function' && define.amd ) { define( 'spe', SPE ); } else if ( typeof exports !== 'undefined' && typeof module !== 'undefined' ) { module.exports = SPE; }
Using module.exports to expose the SPE object is not sufficient without also requiring THREE as a dependency. Therefore, this library--always--needs to be shimmed to even function when loaded via NPM.
module.exports
Thanks, I'm on it (finally).
While this library has module loader support by way of:
Using
module.exports
to expose the SPE object is not sufficient without also requiring THREE as a dependency. Therefore, this library--always--needs to be shimmed to even function when loaded via NPM.