Skip to content

syntactic sugar fails with arrow function #176

@FranckFreiburger

Description

@FranckFreiburger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions