【发布时间】:2018-06-30 11:24:14
【问题描述】:
我正在观看The Angular Compiler 4.0 - TOBIAS BOSCH,突然在视频的 1:30 时有人说AST is transformed into typescript code if we use AOT compilation or javascript code if we use JIT compilation.Compilation process a snapshot of the video。现在我非常困惑引擎盖下到底发生了什么? (.ts) 是否首先由 typescript 编译器转译为 js,然后 angular 编译器发挥作用,还是 angular 编译器完成这项工作,然后 typescript 编译器发挥作用?我经历了这个What does the angular compiler “compile”?
,但显然我的疑问还不清楚?谁能帮我解决这个问题?
【问题讨论】:
-
4.4.0 之前的 AOT 编译器发出打字稿文件。现在 Angular 转移到基于转换的编译器并发出 js 工厂。
标签: angular typescript angular-compiler