Importing html files with es6 template string loader
<p>I want to import my templates into my js with <a href="https://www.npmjs.com/package/es6-template-string-loader" rel="noreferrer">es6 template string loader</a>. The only difference in my case is that I don't want to include css, only html. My code is as follows:</p>

<pre><code>import app from '../../bootstrap.js';
import template from './header.html';

app.component('siteHeader', {
  template
});
</code></pre>

<p>and my error is <code>Uncaught SyntaxError: Unexpected token export</code>. </p>