-
-
Notifications
You must be signed in to change notification settings - Fork 600
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: resolve the inconsistent type issue in JsModule
#8939
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for rspack canceled.Built without sensitive environment variables
|
CodSpeed Performance ReportMerging #8939 will not alter performanceComparing Summary
|
set(val: string) { | ||
module.userRequest = val; | ||
set(val: string | undefined) { | ||
if (val) { |
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.
what if val is an empty string ''
?
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.
The userRequest
property exists only when the module is a NormalModule
; it does not exist in other cases. When the userRequest
of a NormalModule
is an empty string (''), it might overlap in meaning with cases where the userRequest
is absent in non-NormalModule instances. I am uncertain whether this change is appropriate.
Summary
closes #8937
Checklist