I want to import my templates into my js with es6 template string loader. The only difference in my case is that I don't want to include css, only html. My code is as follows:
import app from '../../bootstrap.js';
import template from './header.html';
app.component('siteHeader', {
template
});
and my error is Uncaught SyntaxError: Unexpected token export
.