镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

JSX pragma, flow config and vhtml #14

Open

Description

@hefeust

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.

Activity

  1. AndrewLeedham commented on Jun 16, 2020

    @AndrewLeedham

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions