[Feature]: improve diagnostic when resolve failed with missing resolve.extensions
#5627
Labels
contrib: easy
contrib: has guidance
feat
New feature or request
PR welcome
team
The issue/pr is created by the member of Rspack.
What problem does this feature solve?
For example, if a module resolution is failed as I do
import("./foo")
.Then we will check the files in the current directory with name "foo" but with different extensions or the directory named "foo" with its "index" file(according to
mainFiles
) with different extension than preconfigured resolve.extensions. This could avoid us from setting arbitrary extensions and keep rspack as more Web-spec as possible.Then rspack can list these suggestions in the help section of each diagnostic.
What does the proposed API of configuration look like?
NO API change.
The text was updated successfully, but these errors were encountered: