vuejs / babel-plugin-transform-vue-jsx

babel plugin for vue 2.0 jsx
1.85k stars 132 forks source link

syntactic sugar fails with arrow function #176

Open FranckFreiburger opened 5 years ago

FranckFreiburger commented 5 years ago

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

FranckFreiburger commented 5 years ago

any status about this issue ?

FranckFreiburger commented 5 years ago

ping