Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'babelrcRoots' values passed in babel.config.js are resolved relative to the working directory, not the config file #8909

Closed
loganfsmyth opened this issue Oct 20, 2018 · 0 comments · Fixed by #8910
Labels
i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: core

Comments

@loganfsmyth
Copy link
Member

Bug Report

If you've got

babel.config.js // babelrcRoots: ['./packages/*']
packages/
  mod/
    module.js
    .babelrc.js
    // from here run `babel --rootMode upward module.js

it will fail to load the .babelrc.js because it will treat the root pattern as

packages/mod/packages/*
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Feb 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant