Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

fixExportClass conditions #58

Closed
wants to merge 1 commit into from
Closed

Conversation

dmitrage
Copy link
Contributor

Now plugin always rewrites source code to support ES6 classes on ES5 target with old versions of typescript. Unfortunately, it adds some limitations.
This PR brings two checks when it should only be done:

  • when compilerOptions.target is lower then ES2015
  • when typescript has version lower then 2.0 (target=ES5 and module=ES2015 is supported in 2.0)

@PaulBGD
Copy link
Collaborator

PaulBGD commented May 23, 2017

I'm going to integrate this into #91 (unless you want to, by rebasing off progress) however I'm leaving this open as a reminder.

@PaulBGD PaulBGD self-assigned this May 23, 2017
@PaulBGD
Copy link
Collaborator

PaulBGD commented May 23, 2017

Integrated into #91, thanks for the PR! Works great.

@PaulBGD PaulBGD closed this May 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants