paulmillr / es6-shim

ECMAScript 6 compatibility shims for legacy JS engines
http://paulmillr.com
MIT License
3.11k stars 387 forks source link

Tweak documentation to specify inclusion order of es5-shim and es6-shim #434

Closed jibesh closed 6 years ago

jibesh commented 7 years ago

For using in the browser, the documentation says 'it's strongly recommended to always include es5-shim' but it does not specify the order of inclusion. A side effect of not doing so is as follows:

ljharb commented 7 years ago

Very good point, a PR would be welcome.

(That said, nobody should be using returnExports, because it's a shim - it's meant to simply install things on the environment)