Skip to content

Plugin options #1833

@jmm

Description

@jmm

I feel like plugins are going to be pretty hamstrung without an interface for passing options to them. There's nothing documented for that and as far as I know it doesn't currently exist. If that's correct, perhaps 6.0 would be a good opportunity to introduce this.

Example:

babel.transform(code, {
  // How to provide configuration options to `whatever`?
  plugins: ['whatever'],
});

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions