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

Add support for object __rest helper when using custom typescript 2.1 #81

Closed
tabanliviu opened this issue Jan 9, 2017 · 2 comments
Closed

Comments

@tabanliviu
Copy link

Typescript 2.1 introduced support for object spread and rest

Using a custom typescript library fails because the __rest helper is not added to the build file (see here)

PS: this does bring up an important issue for future compatibility with other features that require helpers. Is there a better way planned to load helpers from typescript directly instead of copying them in the plugin source?

@MattiasBuelens
Copy link

TypeScript now has support for an external helpers library published as tslib on npm (also on GitHub) by using the --importHelpers compiler option. It may be interesting if this rollup plugin could use this new compiler option when using TypeScript 2.1 or higher, or at least pull the helpers from the official tslib package (perhaps as a peer dependency?).

@PaulBGD
Copy link
Collaborator

PaulBGD commented May 23, 2017

Closing issues that I've integrated into #91, will be merged into master soon.

@PaulBGD PaulBGD closed this as completed 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

No branches or pull requests

3 participants