Skip to content

[Feature Request]Plugin system for vue-loader like babel #1603

Closed
@NE-SmallTown

Description

@NE-SmallTown

What problem does this feature solve?

I want to parse a vue file(SFC) and modify(add/change/delete) some code within it, but it seems not easy for me to do that, but for a js file, you could do that easily due to the babel plugin system(it provides more simpler ways to do that).

I notice that there are a few repos which wanted to do this, like vue-sfc-parser, vue-parser, but is not enough to write a plugin.

So, based on the doc "you will only need it separately if you are writing build tools with very specific needs." in https://github.com/vuejs/vue/tree/dev/packages/vue-template-compiler, I think there is no anything like a plugin system, but that is really helpful for some specific needs if we have.

What does the proposed API look like?

I don't know to be honest, maybe something like babel plugin is good enough

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