(I sent this post to JetBrains WebStorm forum, but no one reply…So I post here too, expect someone knows the answer)
I am developing an Electron(http://electron.atom.io/) app using TypeScript 1.4 on WebStorm 10.0.4.
Some .ts files run on Electron main process(NodeJS), so I need to compile them with command option --module commonjs,
and some .ts files run on Electron render process(HTML), so I need to compile them without command option --module commonjs.
In Settings->Languages & Frameworks->TypeScript, I choose Scope to Current File, and set the command line option for file A,
The file B also becomes to use that command line opton…
Can Anyhero know how to resole my problem? Thank U very much first!