stefanpenner/es6-promise

Possibility of removing process/browser.js

hmdhk opened this issue · 0 comments

hmdhk commented

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)