nuxtlabs / nuxt-component-meta

Gather Nuxt components metadata on build time and make them available on production.
69 stars 6 forks source link

processes non-SFC components with sfc compiler #35

Closed danielroe closed 1 year ago

danielroe commented 1 year ago

@vue/compiler-sfc is designed to be used on SFCs and not jsx/js components, but there's no test in this module to skip them.

import { parse } from '@vue/compiler-sfc'
parse('export default { /* <script setup> */ render() { return null } }')
// throws an error