-
Notifications
You must be signed in to change notification settings - Fork 12k
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(webpack): paths plugin modification to not allow multiple requests more than once #3443
Conversation
0c169e5
to
aa236c1
Compare
Can you add an e2e test for this PR? |
@hansl working on it. |
7056ece
to
b0b4543
Compare
What's the status for those tests failing? |
solution itself is not okay. I am suspicious of a bug in webpack resolver, but not sure. I'll try to find a solution for this elsewhere in |
FWIW, the solution I've been using to get the paths to work in my non-angular-cli webpack configuration prior to attempting to integrate |
567ca72
to
119452e
Compare
@chrisfitz thanks for the tip! @hansl can you please check again? |
ff9e114
to
a756422
Compare
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.
Seems like the complexity of the code comes from not replacing the pattern.
let withStarCapturing = excapedAlias.replace('\\*', '(.*)'); | ||
aliasPattern = new RegExp(`^${withStarCapturing}$`); | ||
} else { | ||
aliasPattern = new RegExp(`^${excapedAlias}$`); |
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.
So the pattern now is ^\\*$
which only matches a star? That seems really wrong.
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.
reverted.
bf6753e
to
b8dde3d
Compare
eec0860
to
1c5426c
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
closes #3441