stefanpenner / es6-promise

A polyfill for ES6-style Promises
MIT License
7.3k stars 593 forks source link

Possibility of removing process/browser.js #328

Open hmdhk opened 6 years ago

hmdhk commented 6 years ago

Using webpack as bundler, it automatically adds process/browser.js to the bundle since process is Used for example here: https://github.com/stefanpenner/es6-promise/blob/master/lib/es6-promise/asap.js#L32 to assert isNode.

Is process necessary for es6-promise to function properly or is it only used to detect node environment?

Is it possible to remove this dependency? (For example by releasing a version specifically for browsers)