Commit Graph

4 Commits

Author SHA1 Message Date
丶远方 5ddeb45e82
chore: remove unused imports (#8327) 2023-05-19 07:47:23 +08:00
Haoqun Jiang ffe679c490
fix(types/jsx): move JSX DOM types back to `@vue/runtime-dom` (#7979) 2023-03-29 20:22:29 +08:00
Evan You 28e30c819d fix(types/jsx): remove $slots children override 2023-03-26 17:44:01 +08:00
Evan You d0b7ef3b61
feat(types/jsx): support jsxImportSource, avoid global JSX conflict (#7958)
- 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 */`
2023-03-26 16:40:53 +08:00