-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support non-ambient ".ts" modules #31
Comments
I just realized the dumbness of mentioning Webpack plugins in an issue about a Rollup plugin. 😂 Maybe there's a way to feed the |
I gave my reasons in #29. In short, using the typescript compiler for anything else than just as a parser is really not-trivial. For me personally the transition was really easy and smooth, see 7ea4a02 and eversport/intl-codegen@412f1bf This also opens up the door to maybe kick out |
It's not easy to generate ambient declarations from a set of
Sure, but I don't see this as a slippery slope. All I want is to avoid intermediate files. :) |
I thought the same some months ago, now I changed my mind about this :-) |
This compiles ".ts" modules into ".d.ts" modules in-memory and forwards them to Rollup. This removes the need for intermediate files. Fixes Swatinem#31
I'm curious why support for non-ambient (eg:
.ts
not.d.ts
) definitions was removed.I don't want this plugin to emit anything other than the
.d.ts
bundle, but it would be nice to avoid generating intermediate.d.ts
modules.Also, withts-loader
andawesome-typescript-loader
, it's not possible to generate.d.ts
modules if you want to use a forked process for type checking (eg: withfork-ts-checker-webpack-plugin
).To be clear, I don't want this plugin to perform type checking, either.
The text was updated successfully, but these errors were encountered: