diff --git a/src/index.ts b/src/index.ts index f85fde1..10cc9e0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,7 @@ export { reactive } from '@vue/reactivity' import { createApp } from './app' -let s -if ((s = document.currentScript) && s.hasAttribute('init')) { +const s = document.currentScript +if (s && s.hasAttribute('init')) { createApp().mount() }