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