Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
js: Fix interaction between ES6 modules and meshopt_decoder.js
meshopt_decoder.js used a UMD-style export copied from Emscripten that didn't support ES6 modules, so attempts to import the .js file would fail. It doesn't look like there's a good way to make exports fully work without having a separate .js file, as `export {}` statement can't be conditional on the support of ES6 syntax. So the next best thing appears to be to explicitly inject the value into the global scope, which this change now does. Also fix README.md for gltfpack to use import code that actually works.
- Loading branch information