Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
satanacchio
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
satanacchio
2y ago
The flag --experimental-strip-types has been enabled by default. Only syntax that dont require transformation is allowed. Syntax that require transformation are enum, namespaces (namespaces containing types only are allowed) and legacy modu
2.
▲
by
satanacchio
2y ago
Hi I'm the author of this feature, I'll answer to questions.
3.
▲
by
satanacchio
2y ago
Node.js enables --experimental-strip-types by default
4.
▲
by
satanacchio
2y ago
The first reason is because if we supported ts features that require transformation (such as enume) we would also need to support sourcemaps, so in the first iteration I decided not to, to avoid being overwhelmed. Right now we replace inlin
5.
▲
by
satanacchio
2y ago
yes but can also be upgraded separately as npm package
6.
▲
by
satanacchio
2y ago
We dont support running .ts files in node_modules, this is one of the main constraints to avoid breaking the ecosystem
7.
▲
by
satanacchio
2y ago
this is the roadmap https://github.com/nodejs/loaders/issues/217 . We talked with the typescript team and we will give each other continous feedback on the progression. We made sure to take some precautions in
8.
▲
by
satanacchio
2y ago
I made it sure to decouple the transpiler from node itself, the transpiler is in a npm package called amaro, that is bundled in node. The goal is to allow user to upgrade amaro indipendently so we dont have to lock a ts version for the whol
9.
▲
by
satanacchio
2y ago
Hi I'm the author of the PR, AMA