-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
.babelrc extends issue #172
Comments
I'll have to look into how |
Ok, great! As an update, when I put a |
In ESLint's config, there's an Other than an option under Babel CLI's config (https://babeljs.io/docs/usage/api/#options), I can't find anything in the docs relating to this configuration under To clarify my own issue, I'd like some way of sharing a |
If I have a
.babelrc
file in the root of my project with anextends
clause, the path doesn't resolve relative to the.babelrc
file. Instead, it seems like it's relative to the.storybook/config.js
file.For example, consider a directory structure like this:
And say my
.babelrc
at the root level has this code:This does not work. But if I change the code to (go up a directory first):
it does work.
I'm not entirely sure what the issue is, but it seems like it would be more intuitive to be able to use paths relative to the root when using the root
.babelrc
file.Of course a solution could be to copy the contents of my root
.babelrc
to.storybook/
and make paths relative to that directory (thanks to #149), but then I would need to maintain two.babelrc
files.The text was updated successfully, but these errors were encountered: