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

JSX pragma, flow config and vhtml #14

Open
hefeust opened this issue Aug 11, 2018 · 1 comment
Open

JSX pragma, flow config and vhtml #14

hefeust opened this issue Aug 11, 2018 · 1 comment

Comments

@hefeust
Copy link

hefeust commented Aug 11, 2018

Hi,

I tried vhtml and it looks fine.

However, to integrate it in my stack I need to make it properly working with .flowconfig

  • what's the pragma @jsx syntax to use with vhtml?
  • is there a way to alter .flowconfig to 'prepend 'automatically this @jsx tag to all files ?

Currently I'm using : rollup + buble + flow + vhtml

Thanks for help.

@AndrewLeedham
Copy link

Hi @hefeust

Thought I would weigh in here, looking at https://buble.surge.sh/guide/#jsx it seems adding "jsx": "h" and then importing vhtml with import h from 'vhtml'; should do the job.

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