-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Bug]: mainFiles autoExtensions
bad case "./components/button/index.js"
#250
Comments
By the way, in bundless mode, if cannot resolve, error message should be emitted |
Does other tools support patch |
modernjs module does not support it yet, but its |
esbuild by default could handle If we wish to support this feature, we need to use I think we can temporarily disable |
Same as #238, we should check whether getResolve hook in Rspack will be supported in the nearly future. |
We should also handle when |
We could just follow Rspack's default order.
|
Is there an issue to follow for this? Or a quick way to catch this issue? You mentioned disabling mainFiles? |
You can write the full path when writing source code to avoid this issue. - import button from './button';
+ import button from './button/index'; |
The hard part is finding them all :) So was wondering if there was a quick way, I'll look into it thanks! |
There's not a rational way to find the |
Thanks for the quick response, makes sense. I guess #251 will help flag these issues. |
autoExtensions
bad case "./components/button/index.js"
Version
Details
input
expected behavior
actual behavior
Reproduce link
none
Reproduce Steps
none
The text was updated successfully, but these errors were encountered: