You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation Is:
It's mentioned here that resolution is done:
First, by resolving as a relative path
If not found, it will try to search through the node_modules directory.
Missing
Needed
Confusing
Not Sure?
Please Explain in Detail...
I think it should be mentioned that webpack's alias is tried to be resolved before the "node_module" resolution part.
Which brings me to my next question: Is it expected that webpack's resolve.modules is not used as an alternative for resolution?
Your Proposal for Changes
Indicate, under Webpack provides an [advanced mechanism to resolve files](https://webpack.js.org/concepts/module-resolution/). that specifying a resolution via webpack's resolve alias can be used.
The text was updated successfully, but these errors were encountered:
@chardskarth Yes, alias is prefered, it was simplifed to show ~ changes, resolving logic is more complex, even more you can change node_modules and inject own plugins to resolver
I mean you are right, but if we want describe all resolver's steps it will be very big and complex, anyway if you want to improve docs - feel free to send a PR
Documentation Is:
It's mentioned here that resolution is done:
node_modules
directory.Please Explain in Detail...
I think it should be mentioned that webpack's alias is tried to be resolved before the "node_module" resolution part.
Which brings me to my next question:
Is it expected that webpack's resolve.modules is not used as an alternative for resolution?
Your Proposal for Changes
Indicate, under
Webpack provides an [advanced mechanism to resolve files](https://webpack.js.org/concepts/module-resolution/).
that specifying a resolution via webpack's resolve alias can be used.The text was updated successfully, but these errors were encountered: