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

babel-plugin-transform-react-jsx-source and preact example #306

Closed
thangngoc89 opened this issue Jul 4, 2017 · 4 comments
Closed

babel-plugin-transform-react-jsx-source and preact example #306

thangngoc89 opened this issue Jul 4, 2017 · 4 comments

Comments

@thangngoc89
Copy link

When creating a new with-preact I see __source=[Object object] props in every component like this

image

After poking around on preact's Slack, I come to a solution is to remove babel-plugin-transform-react-jsx-source from the default preset. Will you accept a PR to pass an option to disable it?

@jaredpalmer
Copy link
Owner

Sure.

@thangngoc89
Copy link
Author

@jaredpalmer What should be the name of the option? preact or jsx-source.

@jaredpalmer
Copy link
Owner

jsx-source

@jaredpalmer
Copy link
Owner

Not seeing this anymore. Going to close.

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

2 participants