Skip to content

Why does this lib require babel-polyfill? #15

@olegskl

Description

@olegskl

I'm a maintainer of gulp-stylelint which uses babel-tape-runner to run tests. The tests are run on Travis in Node v0.12, v4, and v5.

One day I've added Object.assign to my code, oblivious to the fact that it doesn't exist in Node v0.12. The tests didn't fail, so I published a release and soon received a bug report.

I've looked at the babel-tape-runner code and found this line:

require('babel-polyfill')

Which obviously polyfills Object.assign, but I'm not sure why babel-tape-runner itself needs it. There's nothing to polyfill in babel-tape-runner.

The problem is that polyfills are also applied to the code under test. Is it possible to remove them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions