-
Notifications
You must be signed in to change notification settings - Fork 31
Fix module resolving when cwd === "babelrc" #45
Fix module resolving when cwd === "babelrc" #45
Conversation
If your content with this I'd appreciate an npm release with it in. |
As explained in #43 (comment), we should resolve the string into the proper directory. I wonder how skipping the babelrc value can work, unless your babelrc file is at the root of the project, which will work indeed because the default cwd in the project root. |
Yes, that is correct. As this PR stands it only covers cases where the babelrc file is at the project root, but that's still an improvement over the current behavior, which never works when |
This should be resolved with the Could you confirm please? Will reopen if not. |
Doesn't look promising:
with
results in a linting failure for every use of the alias. Let me know if I missed something, or if there is more debugging info I can provide. |
So you're right, there's still an issue with it. Reopening the ticket. |
Will investigate further and see if there's a better fix because I'm not convinced we have to skip the value |
Codecov Report
|
see #55 |
Not sure this will fix #43 in all contexts, but it does for me.