-
Notifications
You must be signed in to change notification settings - Fork 12k
Allow configurable use of untyped transpileModule() #19587
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
Comments
Hi @pauldraper, Thanks for this feature request. This is related to an issue you commented on angular/angular#37585 where the Angular compiler doesn't provide a way to transpile a single module. Therefore, AOT compilation wouldn't be possible, which is the default mode in development mode. In addition to that, this also doesn't align with the goal of the Angular CLI to having stricter type-checking rules by default. Without stricter type-checking rules a lot of TypeScript's benefits are lost, together with the possibility of earlier feedback on potential bugs using the type-checker. NB: You can use 3rd party Angular builds and extend the Webpack configuration to replace the Angular compiler plugin with Babel TypeScript. |
Naturally. But Angular CLI works with both
Is that the goal? Because Angular requires flipping two flags
Will this work with |
Hi,
JIT mode is of course faster, because there is less work for the TypeScript compiler to do. This is because in AOT mode there are Angular specific type-checks and transformations.
Stricter type-checking in terms of not just Angular, but also TypeScripts such example of such options are:
For that you'll need a transformer, which requires type-checking. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🚀 Feature request
Command (mark with an
x
)Description
Angular CLI is slow (particularly to start up). A lot of this has to do with the time to typecheck TypeScript.
Describe the solution you'd like
An --transpileModules or --untyped option to skip typechecking.
Describe alternatives you've considered
Using webpack + babel-typescript instead. However, this misses out on the simplicity of using Angular CLI and is inconvenient to configure.
The text was updated successfully, but these errors were encountered: