Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix IE bugs for ES6 static method,eg Array.from #1014

Closed
wants to merge 1 commit into from

Conversation

bowen31337
Copy link

Internet explorer, eg IE11 will throw JS error ,when using ES6 static method Array.from . see detail in https://babeljs.io/docs/usage/polyfill/

Internet explorer, eg IE11 will throw JS error ,when using ES6 static method Array.from . see detail in https://babeljs.io/docs/usage/polyfill/
@tbillington
Copy link

tbillington commented Nov 7, 2016

Babel polyfill was determined too heavy for being included by default in this project, See:

@nhajidin
Copy link
Contributor

nhajidin commented Nov 7, 2016

Since babel-polyfill uses core-js, you can probably use core-js directly.

if (!Array.from) {
    require('core-js/fn/array/from');
}

@gaearon
Copy link
Contributor

gaearon commented Nov 20, 2016

Thanks for the PR but we won't be including Babel polyfill which is huge.
Closing in favor of #969: we need to document available polyfills.

@gaearon gaearon closed this Nov 20, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants