Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntactic sugar fails with arrow function #176

Open
FranckFreiburger opened this issue Mar 21, 2019 · 2 comments
Open

syntactic sugar fails with arrow function #176

FranckFreiburger opened this issue Mar 21, 2019 · 2 comments

Comments

@FranckFreiburger
Copy link

FranckFreiburger commented Mar 21, 2019

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
Copy link
Author

any status about this issue ?

@FranckFreiburger
Copy link
Author

ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant