Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Jul 9, 2024
1 parent 4ce5313 commit 91d509c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ export function compileScript(
imported: string,
isType: boolean,
isFromSetup: boolean,
needTemplateUsageCheck: boolean,
needUsageCheck: boolean,
) {
// template usage check is only needed in non-inline mode, so we can skip
// usage check is only needed in non-inline mode, so we can skip
// the work if inlineTemplate is true.
let isUsedInTemplateOrCssVars = needTemplateUsageCheck
let isUsedInTemplateOrCssVars = needUsageCheck
if (
needTemplateUsageCheck &&
needUsageCheck &&
ctx.isTS &&
sfc.template &&
!sfc.template.src &&
Expand Down

0 comments on commit 91d509c

Please sign in to comment.