When alex said that compilation process pass through 5 steps (3 like a normal typescript compiler and 2 angular specials) , is that true only when using AOT compilation or it doesn't matter if it's JIT or AOT compilation ?
You can write an html template in component file or in external file. The problem with the view engine is that if an error message occurs in the external file, it's hard to locate it. But now the Ivy engine solves this problem.
First of all: great talk :) However I am not getting one thing: When the typescript compiler is written in typescript, who is compiling the compiler? 🤷♂️
TypeScript compiler compiles the typescript code (.ts files) into javascript files. It takes .ts files and convert it into .js. It's like a automatic machine transforming raw materials into finished products. So, why would you wanna transform that automatic machine ? Similarly, why would one compile a compiler, there is no need of that.
I love that trick where they add offsets into the template to the generated typescript to link back to the template on error. Such a beautiful hack.
Yo that part about adding the number comments is so ugly and cool at the same time. I love and hate it 🤣🤣
Excellent! Thank you very much!
Alex Rickabaugh 👏
Great talk and great work! Enjoyed every minute of it.
Thank you.
Amazing talk !!
awsome video
Great talk! 💪
When alex said that compilation process pass through 5 steps (3 like a normal typescript compiler and 2 angular specials) , is that true only when using AOT compilation or it doesn't matter if it's JIT or AOT compilation ?
JIT have 3 ( the regular ts compilation ), AOT have the two extra angular specials for analysing and resolving decorators.
25:45 I dont understand what Alex means by "template in external file" and why is that a problem with the view engine :/.
You can write an html template in component file or in external file. The problem with the view engine is that if an error message occurs in the external file, it's hard to locate it. But now the Ivy engine solves this problem.
First of all: great talk :)
However I am not getting one thing:
When the typescript compiler is written in typescript, who is compiling the compiler? 🤷♂️
TypeScript compiler compiles the typescript code (.ts files) into javascript files. It takes .ts files and convert it into .js. It's like a automatic machine transforming raw materials into finished products. So, why would you wanna transform that automatic machine ? Similarly, why would one compile a compiler, there is no need of that.
The TypeScript compiler compiles itself. This is what is known as a self hosting implementation
cool explanation thx a lot
19:23 `imports: [...CONFIG.modules]`, we have to spread, right?
Yes