Search code examples
javascripttypescriptwebstormtranspiler

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?


Solution

  • 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.