-
|
Hello, I prefer writing my tasks in typescript. So I use a folder named "gulpfile.ts" to organize all my scripts dedicated to gulp. After installing ts-node, "gulp" on the command line compiles all the scripts and launch the tasks perfectly. But the process to compile each time is slow. Now, I would like to speed the initial compilation using the incremental option of the compiler. But it seems that it doesn’t care of the "tsconfig.json" file, using may be its own parameters. Any idea to make it compile faster? Best regards, Pierre-Olivier |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I'm not too sure what You can try it out by removing |
Beta Was this translation helpful? Give feedback.
-
|
Sucrase reduces compilation time, but I have still 9 secondes to wait. |
Beta Was this translation helpful? Give feedback.
I'm not too sure what
ts-nodewould be doing behind the scenes, but I was pretty sure it uses thetsconfigfile (I'm think we test that in ourinterpretmodule). However, yesterday, we added support for a new library called Sucrase that is supposed to allow for very fast builds.You can try it out by removing
ts-nodefrom your project and installingsucrase.