Hakan Kiyar
Hakan Kiyar

Reputation: 1209

WebStorm: Possible to transpile of TypeScript File only when saving

I'm using JavaScript and TypeScript in WebStorm and I'm concerned about WebStorm's transpile behaviour. It transpiles every time I made a change in the TypeScript files.

Is it possible to change that transpile mode, so that transpiling is only happening when I'm saving?

Upvotes: 4

Views: 805

Answers (2)

lena
lena

Reputation: 93728

If you are using built-in Typescript compiler service rather than a file watcher, uncheck 'Track changes' in Settings | Languages & frameworks | TypeScript and use 'Compile All' action to run the compiler explicitly

Upvotes: 3

severin.julien
severin.julien

Reputation: 1354

According to Webstorm documentation, You can change the TypeScript transpiler compile behavior by unchecking the immediate file synchronization checkbox in Preferences > Tools > File Watchers > TypeScript dialog window.

enter image description here

If the TypeScript File Watcher isn't listed in the File Watchers list, you need to create it.

Upvotes: 5

Related Questions