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

Show ES6 alternative syntax for importing #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Show ES6 alternative syntax for importing #60

wants to merge 1 commit into from

Conversation

Cplantijn
Copy link

Some users may be new to using ES6. This change may provide a hint to those who are new to ES6 but would like to maintain as much ES6 syntax as possible.

Some users may be new to using ES6. This change may provide a hint to those who are new to ES6 but would like to maintain as much ES6 syntax as possible.
@tricoder42
Copy link

If you import polyfill using ES6 syntax, you must call imported function:

// require('es6-promise').polyfill();  // polyfill is called

import { polyfill } from 's6-promise';
polyfill();

@louy
Copy link

louy commented May 10, 2016

polyfill() does nothing. should be import 'es6-promise';
stefanpenner/es6-promise@8727651#diff-1f5f0efd56c19eac9e37ef47e6ca89fcL13

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.

3 participants