fastpack / fastpack/fastpack

--globals option

Open
#69 8 comments 2 reactions 0 assignees View on GitHub
enhancement first release
Dominant language
OCaml
Stars
2.3k
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Some modules account for certain global variables to exist at runtime. The most known examples are `global` and `process`. This option would permit to specify the JavaScript file to populate all the global variables bundle may need. It will be included at very top of the bundle.

By default the value included would be:
```
global = window;
process = { env: {NODE_ENV: ""}};
```

Thoughts?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.