s-panferov / awesome-typescript-loader

Awesome TypeScript loader for webpack
Other
2.35k stars 181 forks source link

Joining forces with ts-loader? #266

Open johnnyreilly opened 7 years ago

johnnyreilly commented 7 years ago

Hello awesome-ts-loader folk!

I'm one of the maintainers of ts-loader. I've recently been doing some work to update ts-loader and its test packs. We shipped 1.0.0 last night. As I did this work I came to the conclusion that there is a lot of common ground (unsurprisingly) between awesome-ts-loader and ts-loader itself.

I was wondering how you'd feel about seeing if we could unite ts-loader and awesome-ts-loader somehow. Or perhaps just share some common code. I don't know how much of this is workable but I thought it worth putting it out there. Feel free to turn me down but it seems we might all benefit from pooling our efforts.

If you were interested, here's the areas (as I see them) we'd need to think about:

I'm sure there's more to think about but this is a starting point. My ideal would be to have a unified TypeScript loader for WebPack with a common code base that was built and maintained collectively. How that might come about is something I'd be happy to discuss as much as you like. What do you think?

cc @jbrantly @TheLarkInn

PS stay awesome ;-)

s-panferov commented 7 years ago

Hi @johnnyreilly, thanks for the issue. I too think that we need to unify out code bases and I already started to do this.

My little plan:

johnnyreilly commented 7 years ago

That's a very little plan 😀

johnnyreilly commented 7 years ago

Ooops - I see it now!

s-panferov commented 7 years ago

Both ts-loader and awesome-ts-loader have a need for a sync resolver function. If creating a united loader isn't a realistic proposition I wonder if sharing common code such as this might be realistic?

I've thought about this for some time and I came up that it's better for us to just rely on TypeScript's module resolution engine because, otherwise, we can break IDE support.

johnnyreilly commented 7 years ago

Sounds reasonable. I'm at work right now and so won't be able to respond for most of today but do you want to think about ways in which I can help you? Now I've finished the ts-loader refactor I'm relatively free to do some other stuff. There's one feature that's being worked on that will add an extra option to ts-loader (for vuejs support - details here) but I think that will work out being pretty minor when it comes to changes.

johnnyreilly commented 7 years ago

Just seen the plan; sounds good :smile: Would you like a PR for the CI on Windows support?

wclr commented 7 years ago

What will be the basis for joined forces ts-loader or atl?

s-panferov commented 7 years ago

@whitecolor It will be ts-loader

TheLarkInn commented 7 years ago

Really excited to see this come to fruition. Please let us know if there is any way that the webpack organization can help. Also, we have a private slack for third party loader and plugin authors if you both are interested @johnnyreilly @s-panferov. Just shoot me an email to sean.larkin@cuw.edu if interested and I'll send you an invite.

johnnyreilly commented 7 years ago

Will do @TheLarkInn

johnnyreilly commented 7 years ago

I've emailed you @thelarkinn - my email address is hotmail so you might want to check your junk mail :cry:

sebald commented 7 years ago

So does this mean that the 3.0 release will be the next ts-loader? :-)

s-panferov commented 7 years ago

Release 3.0 mainly means that the current approach is stable enough. I need some more time to collect feedback and then I'll try to come up with a roadmap.

corydeppen commented 7 years ago

Would you be able to provide an update on the status of merging with ts-loader and if that's still a goal of the two projects?

sebald commented 7 years ago

I actually wonder, if this will happen before babel can parse TS :) -> https://github.com/babel/babylon/issues/320#issuecomment-321041737

johnnyreilly commented 7 years ago

As a maintainer of ts-loader, I'm still super keen for ts-loader and awesome-typescript-loader to join forces. Personally speaking it bothers me that there are 2 typescript loaders for webpack; competition is great but my own feeling is that energy is wasted with the current split. I think it would be better if there was a single project where efforts could be made. I'd be keen to help that happen in any way I can. I don't know what @s-panferov's feelings are though.

bootstraponline commented 6 years ago

ping @s-panferov

Is there any update to merging with ts-loader?