-
Notifications
You must be signed in to change notification settings - Fork 26k
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
Ability to opt-out of Babel based Typescript support and use the original Typescript compiler #8699
Comments
So the reason that we don't use |
@timneutkens ok. By slowdowns you mean build times during development and doing production builds, right? |
Build times in development and production, which is a tradeoff you don't want to make in general. |
@zetoke What are these issues? Do tickets for these exist in the babel repo? |
The first one
this one presented in items from officially described caveats/problems list in the documentation of the transformer https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats and will not be fixed I think. With other stuff in this list. The second one exists in Nextjs issues #7882 It's only a couple of examples. Of course I don't use all the features and will probably not see other problems since I don't use all the features of Typescript usually but I just worry that I can't write valid Typescript without keeping in mind all the constraints of Babel's Typescript transformer (and this is a big list!) and need to google and find workarounds for already existent projects. And I just think if there would an ability to opt out I can use incremental builds from Typescript 3.6 without big drop offs in build performance for development purposes. Thank you guys for the very quick answers here! cc @timneutkens |
We're not planning to change this at this point in time. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Feature request
Ability to opt-out of Babel based Typescript support and use the original Typescript compiler
Is your feature request related to a problem? Please describe.
Yes, it's related to problems because Babel Typescript plugin isn't fully featured and does not support all the features of Typescript and has multiple caveats (e.g. with types re-exporting or
.d.ts
files for styles withexport =
).Describe the solution you'd like
Describe alternatives you've considered
Not sure about alternatives in this particular case. But I'm open for ideas!
Additional context
n/a for now
Has not found any other issues with such specific request so created a new one.
I'm very happy to see the progress that you folks are doing with Nextjs! Especially cool to see a huge library of examples.
I'm volunteering and would be really happy help with this features somehow or to create an example and write a documentation. But does not have a huge knowledge about Nextjs internals :(
The text was updated successfully, but these errors were encountered: