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 1ea7756 commit 3bb4208Copy full SHA for 3bb4208
packages/compiler-sfc/src/script/context.ts
@@ -164,6 +164,9 @@ export function resolveParserPlugins(
164
}
165
if (lang === 'ts' || lang === 'tsx') {
166
plugins.push(['typescript', { dts }])
167
+ if (!plugins.includes('importAssertions')) {
168
+ plugins.push(['importAttributes', { deprecatedAssertSyntax: true }])
169
+ }
170
if (!userPlugins || !userPlugins.includes('decorators')) {
171
plugins.push('decorators-legacy')
172
0 commit comments