This Parcel 2 plugin supports transforming mustache templates into ES6 at build time.
import myTemplate from "./template.mustache"
const html = myTemplate.render({ name: "fred"});
Add the following to your .parcelrc
{
"transformers": {
"*.mustache": ["parcel-transformer-hogan"]
}
}