Skip to content

Es6 taget #4

Closed
Closed

Description

@gryole

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.

Activity

  1. 2Pacalypse- commented on Jul 21, 2017

    @2Pacalypse-
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions