-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Check importPath extension with 'dot' #672
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would you mind adding a test case that would fail without your change?
I added the test case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, why are there changes but no diffs in tests/files/internal-modules/package.json
and tests/files/node_modules/exceljs/excel.js
and tests/files/node_modules/exceljs/package.json
?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took care of the rebase. |
Assume that
importPath
is 'exceljs'.The path does not have an extension.
But it ends with 'js' and will be handled as having an extension.
This misleads the module.
Fixed that by checking an extension with 'dot'.