Skip to content

Commit

Permalink
chore: fix 3.4 types
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 31, 2023
1 parent 81be3d1 commit 9f3d75f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-vue/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export function resolveTemplateCompilerOptions(
return {
...options.template,
id,
// @ts-ignore only available in vue 3.4+
ast: canReuseAST(options.compiler.version)
? descriptor.template?.ast
: undefined,
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-vue/src/utils/descriptorCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function createDescriptor(
const { descriptor, errors } = compiler.parse(source, {
filename,
sourceMap,
// @ts-ignore only available in Vue 3.4+
templateParseOptions: template?.compilerOptions,
})

Expand Down

0 comments on commit 9f3d75f

Please sign in to comment.