Don't warn for import of optional dependencies#15688
Closed
schickling wants to merge 1 commit intowebpack:mainfrom
Closed
Don't warn for import of optional dependencies#15688schickling wants to merge 1 commit intowebpack:mainfrom
import of optional dependencies#15688schickling wants to merge 1 commit intowebpack:mainfrom
Conversation
|
Contributor
|
For maintainers only:
|
sokra
requested changes
Apr 20, 2022
| context, | ||
| path: dependency, | ||
| expected: undefined, | ||
| expected: false, |
Member
There was a problem hiding this comment.
Only set this to false for the import() case, which is the if (imp.d > -1) case a few lines above.
|
It's really annoying to see these warnings. |
|
Would it be possible to resolve this warning? It's not critical, but it does clutter the build process with warning messages. In my case I get the following warning: Warning
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Based on @sokra's suggestion, this PR silences warnings like the below of
importstatements of optional dependencies.