Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Aug 6, 2024
1 parent 09a0550 commit 01f95e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/rspack_core/src/normal_module_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ impl NormalModuleFactory {
Ok(rules)
}

fn calculate_resolve_options(&self, module_rules: &[&ModuleRuleEffect]) -> Option<Box<Resolve>> {
fn calculate_resolve_options(&self, module_rules: &[&ModuleRuleEffect]) -> Option<Arc<Resolve>> {
let mut resolved: Option<Resolve> = None;
for rule in module_rules {
if let Some(rule_resolve) = &rule.resolve {
Expand All @@ -649,7 +649,7 @@ impl NormalModuleFactory {
}
}
}
resolved.map(Box::new)
resolved.map(Arc::new)
}

fn calculate_side_effects(&self, module_rules: &[&ModuleRuleEffect]) -> Option<bool> {
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_core/src/options/externals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use rspack_error::Result;
use rspack_regex::RspackRegex;
use rustc_hash::FxHashMap as HashMap;

use crate::{Resolve, ResolveOptionsWithDependencyType, ResolverFactory};
use crate::{ResolveOptionsWithDependencyType, ResolverFactory};

pub type Externals = Vec<ExternalItem>;

Expand Down

0 comments on commit 01f95e6

Please sign in to comment.