babel-plugin-transform-vue-jsx
babel-plugin-transform-vue-jsx copied to clipboard
syntactic sugar fails with arrow function
I have a component factory that use JSX.
export default userOptions => {
...
return {
functional: true,
render: function(h, { data, props }) {
return <span class={...
is transformed into:
export default { functional: true, render: (h, userOptions) ...
Without using the arrow function, everything works well.
versions: node 11.11.0 babel 7.4.0 webpack 4.29.6 vue.js 2.6.10 babel-plugin-transform-vue-jsx version: 4.0.1
any status about this issue ?
ping