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

Es6 taget #4

Closed
gryole opened this issue Jul 21, 2017 · 1 comment
Closed

Es6 taget #4

gryole opened this issue Jul 21, 2017 · 1 comment

Comments

@gryole
Copy link

gryole commented Jul 21, 2017

Is there any special case for using "target": "es6", at tsconfig.json ?

Because lib/index.js is shipped with ES6 and could not be used as is and should be recompiled to ES5.

@2Pacalypse-
Copy link
Member

It's because es5 target in typescript's compiler didn't support iterators.

However, after doing some research, I see they actually have support for iterators in lower targets of ES, behind a flag: microsoft/TypeScript#12346

I just published a new version with a es5 target, and hopefully everything works :d. I have very little experience with Typescript, so please report any issues if you encounter them.

Also, core-js typings shouldn't be necessary anymore, so you can uninstall those if you installed them specifically for this project.

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

No branches or pull requests

2 participants