title: How do I use a template literal in an import statement?
body: <p>When this line is executed:</p>
  
  <pre><code>import stats from `./${process.env.STATS}`
  </code></pre>
  
  <p>the error below is reported:</p>
  
  <blockquote>
    <p>Parsing error: Unexpected token `</p>
  </blockquote>
  
  <p>The module can be loaded successfully with the expression:</p>
  
  <pre><code>const stats = require(`./${process.env.STATS}`);
  </code></pre>
  
  <p>The <code>import</code> statement seems to require a regular string as it works with the statement:</p>
  
  <pre><code>import stats from './statsdir'
  </code></pre>
  
  <p>where <code>'./statsdir'</code> is the value of <code>process.env.STATS</code>.</p>
  
  <p><strong>Why does the error occur?</strong></p>