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

Remove runtime from lib/babel #150

Closed
wants to merge 2 commits into from
Closed

Conversation

floatdrop
Copy link
Contributor

Fixes for #144

  • Remove runtime with polyfills
  • Add regenerator to test files
  • Make it less horrible

It brings polyfills and breaks tests for old Node.js
@floatdrop floatdrop mentioned this pull request Nov 7, 2015
@sindresorhus
Copy link
Member

Couldn't it just read the runtime from https://github.com/facebook/regenerator ?

@@ -1,5 +1,6 @@
'use strict';
const test = require('../../');
const Promise = require('bluebird');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? I don't want to manually require a Promise polyfill in all my tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is lame to include polyfills in test files - but it is bad to include global polyfills either (because they leak to production code).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess there's really no good solution for this...

@floatdrop
Copy link
Contributor Author

Couldn't it just read the runtime from https://github.com/facebook/regenerator ?

This is what Make it less horrible part for ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants