Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash with node.js that has or polyfills fetch() (#6)
"source-map" v0.7.3 uses `if (typeof fetch === "function")` to differentiate between browser and node.js environments. If a node.js environment has `fetch()` -- will be the default in node v18 -- or polyfills it, then it throws: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
- Loading branch information