How to get component `$options` via composition API?
What problem does this feature solve?
With Options API, we can access the component options via this.$options
, but with Composition API I don't see any documentation mentions about this?
What does the proposed API look like?
n/a
<script setup>
import { getCurrentInstance } from 'vue'
const i = getCurrentInstance()
console.log(i.proxy.$options)
</script>
Warning: It's not a public API, and could be changed anytime. Use at your risk.