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

Description
Hey 👋🏻
I was wondering whether custom directives are supported inside the <script setup> tag.
From my current test it seems they are not but I might do sth. wrong 🤔
Example component:
<script setup>
// enables v-focus in templates
const vFocus = {
mounted: (el) => el.focus()
}
</script>
1
<template>
<input v-focus />
</template>
UPDATE
Seems that const focus = {} works but const vFocus = {} does not.