-
Notifications
You must be signed in to change notification settings - Fork 61
[WIP] Progress towards 2.0 support and tslib #91
Conversation
I've just started to use this and noticed the lack of TS2 support. What else needs doing to do this? |
@LukeSheard With this PR TS2 support is included and works. Mostly working on other issues now. |
@PaulBGD Lemme know if you want a hand. Would be happy to contribute. |
@LukeSheard Would love some more tests of the The biggest thing I think is integrating #84, but I'm waiting on a response from @kryops on that. |
@PaulBGD I've just tried out https://github.com/ezolenko/rollup-plugin-typescript2 as well and it's pretty slick. We could probably take a lot of ideas from that. |
Main difference of this plugin (after ongoing updates) and mine is error checking -- all the caching and other stuff is mainly for solving problems introduced by error checking. I'm also probably committing a few grave sins as far as using plugin API goes. Feel free to take as much or as little as makes sense. :) Once official plugin starts supporting error checking (#43), I'll depreciate mine (unless it is faster :)). |
The only thing left before I'm ready to publish this, is that we need way more tests. All the issues I listed seem to be complete with the changes in this branch. EDIT: also will be looking at performance, to see if there's anything we can do to improve that. |
Btw, typescript should be listed in |
@matthew-dean The issue is, we want to provide a single install way for people to get started with Rollup and TypeScript. While I agree that a lot of people that use this plugin will just install their own TypeScript version, I think including this single package will make this easier for newer users. |
Is there any progress? |
@goumang2010 I'm currently trying to find the best way to support definition files, this seems to fulfill the same behavior as |
waiting for this, I'm not considering non-official plugins or gulp-ts or whatever. |
@fightingcat Something you could help with, check if this PR just works. Ideally it should work the same or better with the current master + typescript 2. |
@PaulBGD this PR is intended to introduce |
@StreetStrider Yes. |
I've just updated this branch so that it's mergeable, but none of the tests will pass — it's giving me this error...
...even for tests that have nothing to do with React. Any idea what's going on? |
@Rich-Harris, just checked this, I'm seeing the same thing. |
@Rich-Harris Yeah I updated it locally and ran into the same issue, the main thing I can figure out is that we're discovering .ts files wrong (or not letting typescript handle discovery..) |
@PaulBGD Any updates on this? Being able to generate |
Sorry when I took this on I thought I had more time to work on it. I can try to spend some more time on it, but I'm definitely looking towards merging one of the better working forks back upstream. |
There's a workaround for the tslib issues
plugins: [
rollupTypescript({
importHelpers: true,
}),
nodeResolve({ jsnext: true, main: true })
] |
@PaulBGD we're getting ready to move this plugin to a new home at https://github.com/rollup/plugins, and unfortunately we don't have time as a small team to review all pending PRs before we do that. We're closing any pending feature PRs, but please do not delete your branch. We'd love for you to open a new PR for review at the new repo once that move is done. There shouldn't be too many changes, just a new file structure, so it should be relatively painless. |
Issues this PR will attempt to solve:
__generator
helper #85There are some other issues that I'm looking at adding with this larger PR, but for now those issues outline my goals.