Turn HTML imports into strings.
import html from './example.html';$ npm install --save-dev babel-plugin-ignore-html-and-css-imports.babelrc
{
"plugins": ["transform-ignore-html-and-css-imports"]
}$ babel --plugins transform-ignore-html-and-css-imports script.jsrequire("babel-core").transform("code", {
plugins: ["transform-ignore-html-and-css-imports"]
});Initially based on yeiniel/babel-plugin-transform-html-import-to-string which turned out still not to work properly in Meteor - and since we didn't need the string at all, we've decided to change it a bit.