-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Rewrite Optimizing Template Compiler
Since TypeScript compiler project is moving away from javascript and switching to Go, in the near future it will be necessary to move away from typescript compiler as a parsing/semantic analysis library.
I am planning to rewrite it in Rust with oxc library and package it as native binaries (~1.5Mb). It will be implemented as a simple module transformer that can run in parallel and just transforms templates without any hoisting/dedupe optimizations. All such optimizations are already implemented in the oveo javascript optimizer.
- Automatic hoisting heuristics will be much more conservative, it will bailout if there is a conditional on the hoisting path.
String (attribute/event names) deduplication algorithm won't be able to sort strings.
Basic Template Compiler that doesn't require any precompilation won't change.
Rename useLayoutEffect()
To avoid confusion with React semantics, useLayoutEffect() will be renamed to useAnimationFrameEffect().
Node.prototype.moveBefore()
Displaced nodes will be moved with moveBefore() method in browsers that support this method.