-
-
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
fix(importType): Accept '@example' as internal #1493
Conversation
3 similar comments
@@ -96,7 +98,6 @@ describe('importType(name)', function () { | |||
}) | |||
|
|||
it("should return 'unknown' for any unhandled cases", function() { | |||
expect(importType('@malformed', context)).to.equal('unknown') |
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.
why does this need to be removed?
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.
@malformed
is not anymore an unhandled case. This is the purpose of this PR to accept @foo
pattern.
The test has been replaced by this one.
Hi !
Fix #1379
The bug was related to the
internal
regex which didn't accept a module with only one word.This is the case in Typescript when you use the tconfig
paths
to accept the import of@myModule
in replacement of/src/someFolder/myModule
.Thanks for developing this library!