Skip to content

Ship additional required polyfills #269

Closed
@taion

Description

@taion

Follow-up from #198, #238.

Per http://babeljs.io/docs/usage/caveats/#polyfills, generators are not the only supported language feature that require a polyfill.

Array destructuring, for-of loops, and the array spread operator all require additional polyfills. As such, this project should also ship polyfills for Symbol and Array.from.

It would be possible to accomplish when needed this just by re-enabling transpiling the helpers for the Babel runtime transform, though because of https://phabricator.babeljs.io/T7519, a few of the helpers pull in the Symbol polyfill unnecessarily.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions