vhtml icon indicating copy to clipboard operation
vhtml copied to clipboard

JSX pragma, flow config and vhtml

Open hefeust opened this issue 7 years ago • 1 comments

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.

hefeust avatar Aug 11 '18 08:08 hefeust

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.

AndrewLeedham avatar Jun 16 '20 11:06 AndrewLeedham