-
-
Notifications
You must be signed in to change notification settings - Fork 787
refactor: remove normalModule.loaders #11780
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -571,7 +571,6 @@ impl NormalModuleFactory { | |||||||||||
match_resource_data, | ||||||||||||
Arc::new(create_data.resource_resolve_data.clone()), | ||||||||||||
resolved_resolve_options, | ||||||||||||
loaders, | ||||||||||||
create_data.context.clone().map(|x| x.into()), | ||||||||||||
) | ||||||||||||
.boxed() | ||||||||||||
|
@@ -587,7 +586,10 @@ impl NormalModuleFactory { | |||||||||||
data.add_file_dependencies(file_dependencies); | ||||||||||||
data.add_missing_dependencies(missing_dependencies); | ||||||||||||
|
||||||||||||
Ok(Some(ModuleFactoryResult::new_with_module(module))) | ||||||||||||
Ok(Some(ModuleFactoryResult { | ||||||||||||
module: Some(module), | ||||||||||||
loaders, | ||||||||||||
})) | ||||||||||||
Comment on lines
+589
to
+592
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] This manual struct construction could be replaced with a more explicit constructor method. Consider adding a
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||
} | ||||||||||||
|
||||||||||||
async fn calculate_module_rules<'a>( | ||||||||||||
|
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.
[nitpick] The trait bound should use the standard
Debug
import instead of the fully qualified pathstd::fmt::Debug
. Sincederive_more::Debug
is imported at the top, consider using justDebug
for consistency with the rest of the codebase.Copilot uses AI. Check for mistakes.