Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Mar 17, 2022
1 parent f56478a commit 7acf9a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/next-swc/crates/core/src/modularize_imports.rs
Expand Up @@ -180,9 +180,10 @@ pub fn modularize_imports(config: Config) -> impl Fold {
if !k.starts_with('^') && !k.ends_with('$') {
k = format!("^{}$", k);
}
folder
.packages
.push((CachedRegex::new(&k).expect("transform-imports: invalid regex"), v));
folder.packages.push((
CachedRegex::new(&k).expect("transform-imports: invalid regex"),
v,
));
}
folder
}
Expand Down

0 comments on commit 7acf9a3

Please sign in to comment.