<ul dir="auto">
<li>Electron version: 1.3.3</li>
<li>Operating system: win10</li>
</ul>
<p dir="auto">What I do:</p>
<ol dir="auto">
<li>Use typescript to compile a react project with sourcemap enabled.</li>
<li>Do not use any package tools like webpack or browerify, aka, directly use require() in browser process.</li>
<li>Open the electron instance to debug.</li>
</ol>
<p dir="auto">What I expect:</p>
<ol dir="auto">
<li>The chromium source panel can display tsx files using sourcemaps.</li>
</ol>
<p dir="auto">What I get:</p>
<ol dir="auto">
<li>The source panel can only display the tsx souce files in the root dir, which includes our index.html and main process js file. The components tsx files in some folders do not show up.</li>
</ol>
<p dir="auto">What I try:</p>
<ol dir="auto">
<li>I try to use the inlineSourcemap or set the sourceRoot property, then I get a tsx blank page. What happened?</li>
</ol>
<p dir="auto">Please help me, thanks!</p>
<p dir="auto">Hey,</p>
<p dir="auto">I've noticed that source maps are not applied on first run. After launching Electron, the user needs to re-load the page in order for the source maps to "kick in."</p>
<p dir="auto">Here is a repo where you can reproduce the problem:</p>
<p dir="auto"><a href="https://github.com/mattdesl/test-electron-source-maps/tree/test/first-run">test-electron-source-maps (in branch test/first-run)</a></p>