uncomplexity_ 3 days ago So for example:node --experimental-strip-types ./src/example.tsIt will now be:node ./src/example.tsSome good reads:- https://nodejs.org/en/learn/typescript/run-natively- https://nodejs.org/api/cli.html#--experimental-strip-types
dave4420 3 days ago > By default Node.js will execute only files that contain no TypeScript features that require transformation, such as enums or namespaces.There is a further switch, not yet switched on by default, that performs these transformations.
So for example:
node --experimental-strip-types ./src/example.ts
It will now be:
node ./src/example.ts
Some good reads:
- https://nodejs.org/en/learn/typescript/run-natively
- https://nodejs.org/api/cli.html#--experimental-strip-types
> By default Node.js will execute only files that contain no TypeScript features that require transformation, such as enums or namespaces.
There is a further switch, not yet switched on by default, that performs these transformations.