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
Relative path '.' is transpiled to package.json main field #415
Comments
Just found where it is coming from: babel-plugin-module-resolver/src/utils.js Line 13 in f533cc2
The method |
Fix suggestions:
This leads me to a question: is there a reason to have a custom matcher? Is there any use case where resolving |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a directory structure as follows:
And I have a
main
field specified in my package.json:"main": "src/main.js"
. If I have a relative import ofindex.js
inSomeModule.js
, it gets transpiled to the main field from the package.json.Will try to look into where the resolution is coming from a bit more after work today.
The text was updated successfully, but these errors were encountered: