Skip to content

Fastify hot-reload during development #3795

Closed Answered by hugoattal
hugoattal asked this question in Q&A
Discussion options

You must be logged in to vote

I just add this message in case someone is looking to reduce startup speed during development:

You can just disable type checking (which remains active on your IDE of course), and it will drastically reduce startup time.
For this, just use the transpileOnly flag (shortcut T) on ts-node or nodemon.

Example:

> ts-node --transpileOnly src/index.ts
> ts-node -T src/index.ts

cf https://typestrong.org/ts-node/docs/options/#transpileonly

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@hugoattal
Comment options

@zekth
Comment options

@mcollina
Comment options

@meotimdihia
Comment options

@mcollina
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Fdawgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants