Skip to content

Commit

Permalink
feat: support explicitResourceManagement
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 21, 2023
1 parent ed552b2 commit d1e8944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/script/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function resolveParserPlugins(
userPlugins = userPlugins.filter(p => p !== 'jsx')
}
if (lang === 'ts' || lang === 'tsx') {
plugins.push(['typescript', { dts }])
plugins.push(['typescript', { dts }], 'explicitResourceManagement')
if (!plugins.includes('importAssertions')) {
plugins.push(['importAttributes', { deprecatedAssertSyntax: true }])
}
Expand Down

0 comments on commit d1e8944

Please sign in to comment.