From b9e33ea730b3456ee33bc5588c0c0fc60cdad846 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Thu, 23 May 2024 14:55:18 +0200 Subject: [PATCH] Enable React transform option throwIfNamespace --- crates/turbopack-ecmascript/src/transform/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/turbopack-ecmascript/src/transform/mod.rs b/crates/turbopack-ecmascript/src/transform/mod.rs index 4d161907ee9fa..b87d565479f11 100644 --- a/crates/turbopack-ecmascript/src/transform/mod.rs +++ b/crates/turbopack-ecmascript/src/transform/mod.rs @@ -161,6 +161,7 @@ impl EcmascriptInputTransform { runtime: Some(runtime), development: Some(*development), import_source: import_source.await?.clone_value(), + throw_if_namespace: Some(true), refresh: if *refresh { Some(swc_core::ecma::transforms::react::RefreshOptions { refresh_reg: "__turbopack_refresh__.register".to_string(),