babel-plugin-transform-vue-jsx
babel-plugin-transform-vue-jsx copied to clipboard
incorrect h injection
const foo = {
router() {
return {
render() {
return (
<div>
<h1>Hello World!</h1>
</div>
)
}
}
}
}
Results in:
const foo = {
router() {
+ const h = this.$createElement;
return {
render() {
const h = arguments[0];
return h("div", [h("h1", ["Hello World!"])]);
}
};
}
};