-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: add client.overlay.runtimeErrors options #4773
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
Merged
alexander-akait
merged 13 commits into
webpack:master
from
malcolm-kee:fix/respect-overlay-options
Mar 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c19595c
fix: respect overlay options
malcolm-kee 06900a7
fix: apply overlay.errors options to runtime error
malcolm-kee c10a8ca
fix: not listen for runtime error if window not available
malcolm-kee 3f9a7dc
fix: add overlay.runtimeErrors options
malcolm-kee 09040ad
fix: add missing options
malcolm-kee 2a016da
fix: remove unintended console
malcolm-kee 972633c
fix: broken tests
malcolm-kee bbde757
fix: revert unintended change
malcolm-kee 1969246
fix: update webpack4 snapshot
malcolm-kee c3640e4
refactor: code
alexander-akait 68c7bbf
test: update
alexander-akait 70c5566
test: update
alexander-akait a17765a
test: update
alexander-akait File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@malcolm-kee this is not sufficient. You are only checking if
options.overlay
is truthy. All options need to be passed into thecreateOverlay()
function. Theoverlay
options areerrors: boolean
&warnings: boolean
.Then, the
show()
function inoverlay.js
needs to check if thetype
is "warning" or "error" and compare the passed options.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.
Yeah, we have before https://github.com/webpack/webpack-dev-server/blob/v4.11.1/client-src/index.js#L253
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.
@crobinson42 good catch!
I just pushed a fix so that runtime error check the options as well.
For build error/warning, it's already handled:
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.
Testa are failed, can you look what is wrong (no rush), I think today after rest we will fix all issues