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

Infer Component Name from .vue filename #86

Open
@Aaron-Pool

Description

@Aaron-Pool

I can't find it in the <script setup> docs at the moment, but I followed the script setup spec pretty closely, and I could have sworn that the name field of the component options is inferred from the name of the .vue file when script setup is used in Vue3. Can that functionality be added here? I've actually used patch-package to patch the transform to enable that functionality in my own dev environment, but I'd love to get it merged into the package proper, so that I don't have to maintain a patch file as I upgrade to different versions of this plugin.

I'd be happy to do the PR myself, if that would be helpful and if this was functionality you'd be ok with adding to the core plugin functionality.

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