question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AOT compilation for JS

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:10
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
dmellstromcommented, Jun 17, 2021

One week left to get 12 more 👍s for this or it will be closed.

2reactions
iFadeycommented, Jul 21, 2017

Any update on this? Is it possible to use AOT with JavaScript/Angular 4?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found