-
Notifications
You must be signed in to change notification settings - Fork 266
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
[development] Update webpack rewrite logic to facilitate pre-auth in local development #7598
base: master
Are you sure you want to change the base?
Conversation
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7598 +/- ##
=======================================
Coverage 41.85% 41.85%
=======================================
Files 42 42
Lines 939 939
Branches 230 238 +8
=======================================
Hits 393 393
- Misses 502 546 +44
+ Partials 44 0 -44
Flags with carried forward coverage won't be shown. Click here to find out more. |
const DEBUG_ENABLED: boolean = false; | ||
const DEBUG_LOG_KEY: string = "webpack-dev-server"; | ||
// eslint-disable-next-line @typescript-eslint/typedef, no-console | ||
const log = console.log; |
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.
If we directly assign console
, we won't need a eslint disable comment here 😉
const log = console.log; | |
const logger = console; |
let matchFound: boolean = false; | ||
|
||
for (const pattern of patterns) { | ||
if (pattern.test(pathWithoutQuery) && query.code) { | ||
matchFound = true; | ||
|
||
break; | ||
} | ||
} |
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.
We can use .some
instead.
const matchFound = patterns.some(pattern => pattern.test(pathWithoutQuery) && query.code);
Much needed improvement btw 👏 |
Purpose
$subject
Related Issues
Related PRs
Checklist
Security checks