From d4dd89e9e690b214e917fe682d203dbdce9cf7bf Mon Sep 17 00:00:00 2001 From: Benjamin Woodruff Date: Mon, 7 Oct 2024 16:58:10 -0700 Subject: [PATCH] hand-fix some code gated behind next-swc-napi/plugin --- .../src/next_shared/transforms/swc_ecma_transform_plugins.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(), )); }