Skip to content

processes non-SFC components with sfc compiler #35

Closed
@danielroe

Description

@danielroe

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions