Thanks to visit codestin.com
Credit goes to github.com

Skip to content

@babel/parser implement custom extensions #17815

@lykl

Description

@lykl

💻

  • Would you like to work on this feature?

What problem are you trying to solve?

I want to extend the parser by adding a custom plugin through parserOpts.plugins.
Currently, this is not possible, so I can only fork it.

Describe the solution you'd like

I hope to expand the functionality of the parser by adding my own implemented parser plugin through npm installation.

Describe alternatives you've considered

In my own parser, I call @babel/parser's parse for the js part.
Or simply fork a copy and modify it myself.

Documentation, Adoption, Migration Strategy

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions