I'd like to import HTML files as a string with ParcelJS, like this:
import testHTML from './testHTML.html';
document.body.insertAdjacentHTML('afterbegin', testHTML);
But the docs say:
Importing HTML in JavaScript does not statically include the HTML strings, but the HTML files will dynamically be fetched using the Fetch API.
Is there any way to force the import as a string?