Turn HTML imports into strings.
Given the following example.html.
<h1>Hello</h1>import html from './example.html';var html = '<h1>Hello</h1>';$ npm install babel-plugin-transform-html-import-to-string.babelrc
{
"plugins": ["transform-html-import-to-string"]
}$ babel --plugins transform-html-import-to-string script.jsrequire("babel-core").transform("code", {
plugins: ["transform-html-import-to-string"]
});