diff --git a/crates/next-core/src/next_shared/transforms/swc_ecma_transform_plugins.rs b/crates/next-core/src/next_shared/transforms/swc_ecma_transform_plugins.rs index bd31bf0f175db..88ef32ff997fa 100644 --- a/crates/next-core/src/next_shared/transforms/swc_ecma_transform_plugins.rs +++ b/crates/next-core/src/next_shared/transforms/swc_ecma_transform_plugins.rs @@ -97,10 +97,7 @@ pub async fn get_swc_ecma_transform_rule_impl( }; plugins.push(( - SwcPluginModule::cell(SwcPluginModule::new( - name, - file.content().to_bytes()?.to_vec(), - )), + SwcPluginModule::new(name, file.content().to_bytes()?.to_vec()).resolved_cell(), config.clone(), )); }