We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8090a87 commit c6e8a13Copy full SHA for c6e8a13
packages/compiler-sfc/src/script/context.ts
@@ -163,10 +163,10 @@ export function resolveParserPlugins(
163
userPlugins = userPlugins.filter(p => p !== 'jsx')
164
}
165
if (lang === 'ts' || lang === 'tsx') {
166
- plugins.push(
167
- ['typescript', { dts }],
168
- ['importAttributes', { deprecatedAssertSyntax: true }]
169
- )
+ plugins.push(['typescript', { dts }])
+ if (!plugins.includes('importAssertions')) {
+ plugins.push(['importAttributes', { deprecatedAssertSyntax: true }])
+ }
170
if (!plugins.includes('decorators')) {
171
plugins.push('decorators-legacy')
172
0 commit comments