Skip to content

Commit

Permalink
feat: experimentalSuppressInvalidJsxElementTypeErrors default true
Browse files Browse the repository at this point in the history
close #1411, close #1412, close #1414, close #1415
  • Loading branch information
johnsoncodehk committed Jun 7, 2022
1 parent 92a9606 commit 79c33b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -76,7 +76,7 @@
},
"experimentalSuppressInvalidJsxElementTypeErrors": {
"type": "boolean",
"markdownDescription": "Suppress invalid JSX element type errors in template. (Default false)"
"markdownDescription": "Suppress invalid JSX element type errors in template. (Default true)"
},
"experimentalResolveStyleCssClasses": {
"enum": [
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/vueFile.ts
Expand Up @@ -177,7 +177,7 @@ export function createVueFile(
target: compilerOptions.target ?? 3,
experimentalRuntimeMode: compilerOptions.experimentalRuntimeMode,
experimentalAllowTypeNarrowingInInlineHandlers: compilerOptions.experimentalAllowTypeNarrowingInInlineHandlers ?? false,
experimentalSuppressInvalidJsxElementTypeErrors: compilerOptions.experimentalSuppressInvalidJsxElementTypeErrors ?? false,
experimentalSuppressInvalidJsxElementTypeErrors: compilerOptions.experimentalSuppressInvalidJsxElementTypeErrors ?? true,
},
sfc.template?.lang ?? 'html',
templateAstCompiled.value.ast,
Expand Down

0 comments on commit 79c33b9

Please sign in to comment.