Skip to content

Commit 9d0eba9

Browse files
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy