Webpack TypeScript module.hot does not exist
<p>I want to enable <strong>Webpack HMR</strong> in a <strong>NodeJS</strong> project written in <strong>TypeScript</strong>.</p>

<p>But <code>module.hot</code> is not available:</p>

<ul>
<li><p><strong>@types/webpack-env</strong> defines:</p>

<pre><code>declare var module: __WebpackModuleApi.Module
</code></pre></li>
<li><p>Which conflicts with <strong>@types/node</strong> definition:</p>

<pre><code>declare var module: NodeModule
</code></pre></li>
</ul>

<p>Removing <strong>@types/node</strong>, solves the issue, but disables <code>process</code>:</p>

<pre><code>process.env.NODE_ENV === 'production' // [ts] Cannot find name 'process'
</code></pre>