stefanpenner / es6-promise

A polyfill for ES6-style Promises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibility of removing process/browser.js

hmdhk opened this issue · comments

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)