max-mapper / max-mapper/requirebin
`process` is undefined
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 389
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
cross-post of https://github.com/jesusabdullah/browserify-cdn/issues/60
process is undefined in the top-level code. process inside of modules is fine.
example: http://requirebin.com/?gist=b3fdca8db80a874cd1a2
// ignore this
require('os')
var output
try {
output = process
} catch (err) {
output = err
}
document.body.innerHTML = output
Note: the require('os') statement is to work around #32
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the linked requirebin example and compare top-level code with code inside modules. Trace how the browser bundle is generated and verify the fix by confirming that top-level access to process works while the existing module behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100