Skip to content

Commit

Permalink
feat!: add jsxImportSource; Vue 3.3+ is required
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop support for Vue 3.2 and below

See https://blog.vuejs.org/posts/vue-3-3#jsx-import-source-support

It doesn't need to be explicitly set for most projects because Volar /
vue-tsc would detect the Vue version and set it automatically.

But in a pure TS/TSX project, it's required to set it manually. So we
are explicitly adding it here.
  • Loading branch information
sodatea committed May 12, 2023
1 parent da65455 commit 24befe1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Expand Up @@ -19,6 +19,7 @@

// Required in Vue projects
"jsx": "preserve",
"jsxImportSource": "vue",

// `"noImplicitThis": true` is part of `strict`
// Added again here in case some users decide to disable `strict`.
Expand Down

0 comments on commit 24befe1

Please sign in to comment.