Skip to content

Commit

Permalink
Enable React transform option throwIfNamespace
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed May 23, 2024
1 parent 5f8636b commit b9e33ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/turbopack-ecmascript/src/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit b9e33ea

Please sign in to comment.