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
Please tell us about your environment (it's probably not very relevant to this issue):
Operating System:
Windows 7
Node Version:
4.4.7
NPM Version:
3.10.6
JSPM OR Webpack AND Version
webpack 2.1.0-beta.17
Browser:
all
Language:
all
Current behavior:
When a module has the same name as a sibling directory, the module is skipped and a warning Unable to resolve path/to/module is raised.
Expected/desired behavior:
The module should be loaded.
STR: simply create a directory (that can be empty) in the same directory and with the same name as an existing module, without the .js extension. The module will be skipped with the above warning.
What is the expected behavior?
The module should be loaded normally.
What is the motivation / use case for changing the behavior?
Having directory with same names as module should not create issues.
My suggestion would be to keep testing for path existence if stats is relative to a directory in ensurePathHasExtension, as below:
I'm submitting a bug report
1.0.0-beta.4.0.1
major.minor.patch-pre
Please tell us about your environment (it's probably not very relevant to this issue):
Operating System:
Windows 7
Node Version:
4.4.7
NPM Version:
3.10.6
JSPM OR Webpack AND Version
webpack 2.1.0-beta.17
Browser:
all
Language:
all
Current behavior:
When a module has the same name as a sibling directory, the module is skipped and a warning
Unable to resolve path/to/module
is raised.Expected/desired behavior:
The module should be loaded.
STR: simply create a directory (that can be empty) in the same directory and with the same name as an existing module, without the .js extension. The module will be skipped with the above warning.
The module should be loaded normally.
Having directory with same names as module should not create issues.
My suggestion would be to keep testing for path existence if
stats
is relative to a directory inensurePathHasExtension
, as below:Such a minor change is probably not worth a PR, so unless you insist I'll leave you push that change.
Thanks in advance!
The text was updated successfully, but these errors were encountered: