Skip to content

Commit

Permalink
Update source-map dependency
Browse files Browse the repository at this point in the history
Firstly thanks very much for this excellent library.

I am running a Nodejs app and am hitting the following error when using this library:
```
You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
```

* A dependency of yours "source-map" detects the runtime (Nodejs vs browser) in a broken way. That library then throws an exception if some client-side-specific code is not run.
* The "check" checks for the presence of a variable "fetch" and the reasonable thinking is that only browsers will have fetch. The issue is that in my case and in some others (see [here](mozilla/source-map#349)) 3rd party libraries can define a variable "fetch" which triggers the described error.

None
  • Loading branch information
jacobg213 committed Oct 3, 2019
1 parent 8bb8f27 commit c44f666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"bluebird": "^3.5.2",
"source-map": "^0.7.3"
"source-map": "^0.8.0-beta.0"
},
"description": "V8 stack traces with optional source map resolution.",
"devDependencies": {
Expand Down

0 comments on commit c44f666

Please sign in to comment.