Skip to content

Commit a86adda

Browse files
committed
feat: support explicitResourceManagement
1 parent 3bb4208 commit a86adda

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
@@ -163,7 +163,7 @@ export function resolveParserPlugins(
163163
userPlugins = userPlugins.filter(p => p !== 'jsx')
164164
}
165165
if (lang === 'ts' || lang === 'tsx') {
166-
plugins.push(['typescript', { dts }])
166+
plugins.push(['typescript', { dts }], 'explicitResourceManagement')
167167
if (!plugins.includes('importAssertions')) {
168168
plugins.push(['importAttributes', { deprecatedAssertSyntax: true }])
169169
}

0 commit comments

Comments
 (0)