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

feat(types/jsx): support jsxImportSource, avoid global JSX conflict #7958

Merged
merged 1 commit into from Mar 26, 2023

Commits on Mar 26, 2023

  1. feat(types/jsx): support jsxImportSource, avoid global JSX conflict

    - No longer implicitly register global JSX types by default
      - This avoid conflict when using Vue in the same project with React
      - Global registration must now be done by explicitly importing /
        referencing `vue/jsx`, or listing it in `compilerOptions.types`.
    - Add `vue/jsx-runtime` to support `jsxImportSource` usage
      - Can enable globally by setting `compilerOptions.jsxImportSource` to `'vue'`
      - Can also opt-in per-file with `/** @jsxImportSource vue */`
    yyx990803 committed Mar 26, 2023
    Copy the full SHA
    6683888 View commit details
    Browse the repository at this point in the history