-
-
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 @/abc being treated as scoped module #1854
Conversation
Fixes #1851 Before this commit, @/abc was being wrongly detected as a scoped module. This was a problem when somebody had a webpack alias `@`. (eg. @ -> ./src) In general, scoped modules can't start with @/, I think they have to be like @/abcd.
This function is used only once in the whole codebase, but I guess it could be made less fragile by adding things like:
|
5 similar comments
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.
Thanks! Would you mind adding a regression test?
@3nuc You are awesome! |
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.
Beautiful, thanks!
Fixes #1851
Before this commit, @/abc was being wrongly detected as a scoped module.
This was a problem when somebody had a webpack alias
@
. (eg. @ -> ./src)In general, scoped modules can't start with @/, I think they have to be like @abcd/sometext.