Skip to content

Commit 9d0eba9

Browse files
authoredNov 9, 2023
fix(compiler-core): fix resolveParserPlugins decorators check (#9566)
close #9560
1 parent 2c0414f commit 9d0eba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/compiler-sfc/src/script/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function resolveParserPlugins(
164164
}
165165
if (lang === 'ts' || lang === 'tsx') {
166166
plugins.push(['typescript', { dts }])
167-
if (!plugins.includes('decorators')) {
167+
if (!userPlugins || !userPlugins.includes('decorators')) {
168168
plugins.push('decorators-legacy')
169169
}
170170
}

0 commit comments

Comments
 (0)
Please sign in to comment.