Precompile inline Handlebars templates.
In
import hbs from 'handlebars-inline-precompile';
hbs`Hello World!`;
Out
import _Handlebars from 'handlebars/runtime';
_Handlebars.template({ /* A bunch of crazy template stuff */ })
$ npm install babel-plugin-handlebars-inline-precompile
.babelrc
{
"plugins": ["handlebars-inline-precompile"]
}
$ babel --plugins handlebars-inline-precompile script.js
require("babel-core").transform("code", {
plugins: ["handlebars-inline-precompile"]
});