mozilla / mozilla/source-map

Electron not supported

Open
#390 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feat
Dominant language
JavaScript
Stars
3.7k
Forks
370
PR merge metrics
No merged PRs in 30d

Description

I want to use the latest version of source-map. However, when requiring it, it doesn't initialize correctly. The problem is that the check for the environment being a browser is the availability of the fetch function. However, in Electron fetch is available but Node.JS is also available.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce requiring the latest source-map from an Electron environment, then trace the initialization path and its browser check based on fetch availability. Confirm how Node.js presence is detected in Electron; done means source-map initializes correctly there without treating Electron as a browser.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.