Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Apr 23, 2023
1 parent ebe0b3c commit 3cc5b77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 1 addition & 7 deletions crates/rspack_core/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,7 @@ impl Stats<'_> {
.module_graph
.modules()
.values()
.map(|module| {
self.get_module(
module,
reasons,
module_assets,
)
})
.map(|module| self.get_module(module, reasons, module_assets))
.collect::<Result<_>>()?;
Self::sort_modules(&mut modules);
Ok(modules)
Expand Down
7 changes: 5 additions & 2 deletions packages/rspack/src/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ export class Stats {
options.chunkModules!,
options.chunkRelations!,
options.reasons!,
options.moduleAssets!,
options.moduleAssets!
);
}
if (options.modules) {
obj.modules = this.#inner.getModules(options.reasons!, options.moduleAssets!);
obj.modules = this.#inner.getModules(
options.reasons!,
options.moduleAssets!
);
}
if (options.entrypoints) {
obj.entrypoints = this.#inner
Expand Down

0 comments on commit 3cc5b77

Please sign in to comment.