Skip to content

Know the source of the babelrc config inside a plugin (T7551) #4449

@babel-bot

Description

@babel-bot

Issue originally made by @tleunen

Bug information

  • Babel version: 6.13.2
  • Node version: 6.3.0

Description

I have a specific plugin case in which knowing the path of the babelrc configuration file would be helpful. So having that information inside the state in the plugin would be great, because sometimes, .babelrc is not at the root of the project (working directory).

I've tried to see inside state.file.opts if the info was already there but it doesn't seem to be the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR: New Feature 🚀A type of pull request used for our changelog categoriesoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions