Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vaakian authored and sxzz committed Feb 1, 2023
1 parent 1433b30 commit e8736ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/__tests__/compileScript.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ defineExpose({ foo: 123 })
test('template ref', () => {
const { content } = compile(`
<script setup lang="ts">
import { foo, bar, Baz } from './foo'
import { foo, bar, Baz } from './foo'
</script>
<template>
<div ref="foo"></div>
Expand Down
1 change: 1 addition & 0 deletions packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2306,6 +2306,7 @@ function stripTemplateString(str: string): string {
}
return ''
}

function isImportUsed(local: string, sfc: SFCDescriptor): boolean {
return new RegExp(
// #4274 escape $ since it's a special char in regex
Expand Down

0 comments on commit e8736ed

Please sign in to comment.