Ts-node: How to add the --transpile-only to "--nolazy -r ts-node/register" when debug in IDE

Created on 20 Sep 2018  路  2Comments  路  Source: TypeStrong/ts-node

I am debugging a TypeScript project in VS Code or WebStorm as NodeJS configuration.
In node parameters, I input:

`--nolazy -r ts-node/register`

but If I add --transpile-only to the line above head or tail,
Node report bad option: --transpile-only when I launch the debugger.

How can I add --transpile-only or -T in this situation? Thanks.

Most helpful comment

It鈥檚 in the README. Use a different file to require or environment variables.

All 2 comments

It鈥檚 in the README. Use a different file to require or environment variables.

Thanks, I saw it this time, I use the TS_NODE_TRANSPILE_ONLY environment variable resolved this problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

remojansen picture remojansen  路  4Comments

grissius picture grissius  路  3Comments

sodiumjoe picture sodiumjoe  路  4Comments

watzon picture watzon  路  3Comments

OliverJAsh picture OliverJAsh  路  3Comments