Skip to content

Commit

Permalink
fix: script setup check (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 26, 2021
1 parent e9951d9 commit 5ce5786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { transform } from '.'
export * from './core/transform'
export * from './types'

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

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

0 comments on commit 5ce5786

Please sign in to comment.