We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f56478a commit 7acf9a3Copy full SHA for 7acf9a3
packages/next-swc/crates/core/src/modularize_imports.rs
@@ -180,9 +180,10 @@ pub fn modularize_imports(config: Config) -> impl Fold {
180
if !k.starts_with('^') && !k.ends_with('$') {
181
k = format!("^{}$", k);
182
}
183
- folder
184
- .packages
185
- .push((CachedRegex::new(&k).expect("transform-imports: invalid regex"), v));
+ folder.packages.push((
+ CachedRegex::new(&k).expect("transform-imports: invalid regex"),
+ v,
186
+ ));
187
188
folder
189
0 commit comments