AOT compilation for JS
See original GitHub issueI’m submitting a …
[ ] bug report => search github for a similar issue or PR before submitting
[ x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior Because ngc wraps tsc, it can only generate ngFactories for typescript files.
Expected behavior Ideally, typescript transpiling and ngFactory generation would be decoupled, so plain js (or languages other than ts that target js) can be used.
What is the motivation / use case for changing the behavior? AOT compilation and treeshaking are important tools for production deployment, and should work with all languages supported by angular.
-
Angular version: 2.0.0
-
Language: all
My apologies if this has been discussed before. I have been able to find no reference to this issue on SO, the google group, or in the issues (although github’s search does not scale well with 1000+ open issues).
Issue Analytics
- State:
- Created 7 years ago
- Reactions:10
- Comments:25 (8 by maintainers)
Top Results From Across the Web
Ahead-of-time (AOT) compilation - Angular
AOT compiles HTML templates and components into JavaScript files long before they are served to the client. With no templates to read and...
Read more >AOT-compilation of Javascript with V8 - Phil Eaton
In this technique, you use core parts of the runtime code as a library that is imported and referenced by compiled code. You...
Read more >Of JavaScript AOT compilation performance
The fastest JavaScript production implementations use just-in-time (JIT) compilation and the vast majority of academic publications about ...
Read more >Of JavaScript AOT Compilation Performance - ICFP 2021
This paper presents the design and implementation of an AoT JavaScript compiler, focusing on a performance analysis. The paper reports on two experiments, ......
Read more >AOT Compiling JavaScript, Part 1 - rynco
AOT Compiling JavaScript, Part 1 ... So yeah. JavaScript. Your favorite language that's designed under 11 days and got patches all over its...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
One week left to get 12 more 👍s for this or it will be closed.
Any update on this? Is it possible to use AOT with JavaScript/Angular 4?