How to debug electron applications with WebStorm that are built in Typescript
<p>I have followed the instructions here: <a href="https://stackoverflow.com/questions/32348540/how-to-debug-electron-applications-with-intellij-or-webstorm">How to debug electron applications with IntelliJ or WebStorm?</a></p>

<p>which has an answer that works well with code written in JS.  All our electron code is written in Typescript that is eventually transpiled through webpack.</p>

<p>However, if I specify in the configuration to use my main.ts entry point, Electron shows the error below.  What do I need to do to get this workflow going?</p>

<p><a href="https://i.stack.imgur.com/xE5Zd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xE5Zd.png" alt="enter image description here"></a></p>