title: Webpack Dynamic Import Expression Not Working
body: <p>I am using react with webpack.</p>
  
  <p>I got a folder with hundreds of SVGs in it.<br>
  Thereby I am using webpacks dynamic import syntax like so <code>import('../images_svg/' + svgData.path + '.svg')</code> sadly this doesn't work. Also I am using the svg-inline-loader. </p>
  
  <p>That's why I get the following exception:</p>
  
  <pre><code>&lt;--- Last few GCs ---&gt;
  
     95733 ms: Mark-sweep 1301.0 (1434.6) -&gt; 1303.2 (1434.6) MB, 61.8 / 0.0 ms [allocation failure] [scavenge might not succeed].
     95794 ms: Mark-sweep 1303.2 (1434.6) -&gt; 1305.4 (1434.6) MB, 60.9 / 0.0 ms [allocation failure] [scavenge might not succeed].
     95856 ms: Mark-sweep 1305.4 (1434.6) -&gt; 1312.2 (1418.6) MB, 62.3 / 0.0 ms [last resort gc].
     95922 ms: Mark-sweep 1312.2 (1418.6) -&gt; 1319.1 (1418.6) MB, 65.9 / 0.0 ms [last resort gc].
  
  
  &lt;--- JS stacktrace ---&gt;
  
  ==== JS stack trace =========================================
  
  Security context: 000001788583FA99 &lt;JS Object&gt;
      1: stringify [native json.js:178] [pc=000002CFEA0A3CF7] (this=0000017885846091 &lt;a JSON with map 0000010551613B91&gt;,E=0000023A39E19981 &lt;Very long string[11977826]&gt;,F=0000017885804241 &lt;undefined&gt;,S=0000017885804241 &lt;undefined&gt;)
      2: arguments adaptor frame: 1-&gt;3
      3: /* anonymous */ [C:\Users\phili\Documents\Kunden\step1\app\node_modules\webpack\lib\EvalDevToolModuleTemplatePlugin.js:~17...
  
  FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 
  </code></pre>
  
  <p>How can I dynamically import all SVGs using webpack, without getting a heap out of memory error?</p>