Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 5ce5786

Browse files
authored
fix: script setup check (#24)
1 parent e9951d9 commit 5ce5786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { transform } from '.'
55
export * from './core/transform'
66
export * from './types'
77

8-
const scriptSetupRE = /<script\s+setup/
8+
const scriptSetupRE = /<script\s(.*\s)?setup(\s.*)?>/
99

1010
export default createUnplugin<ScriptSetupTransformOptions>(options => ({
1111
name: 'unplugin-vue2-script-setup',

0 commit comments

Comments
 (0)