Re:PR converts the Three.js codebase to ES2015 modules
by rich_harris on Saturday July 23, 2016 @11:32PM
(#12152113)
AudioContext is a special case – unlike most of the THREE.* exports, THREE.AudioContext is a getter (which initializes a Web Audio context). ES module namespaces can't have getters, so for backwards compatibility in the generated UMD bundle it was necessary to add that snippet to the bottom.
[ Parent
| on HN ]
There are no comments on this comment yet.