From be899d2dc19cb88378026689327820ccc11e5f87 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 8 Apr 2024 15:22:31 +0200 Subject: [PATCH] fix edge condition in environment (vercel/turbo#7912) ### Description provide correct conditions for edge ### Testing Instructions Closes PACK-2915 --- crates/turbopack-core/src/environment.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/turbopack-core/src/environment.rs b/crates/turbopack-core/src/environment.rs index 3c8cc7bdef06c..05813151aedf0 100644 --- a/crates/turbopack-core/src/environment.rs +++ b/crates/turbopack-core/src/environment.rs @@ -188,7 +188,9 @@ impl Environment { Vc::cell(vec!["node".to_string()]) } ExecutionEnvironment::Browser(_) => Vc::>::default(), - ExecutionEnvironment::EdgeWorker(_) => Vc::cell(vec!["edge-worker".to_string()]), + ExecutionEnvironment::EdgeWorker(_) => { + Vc::cell(vec!["edge-light".to_string(), "worker".to_string()]) + } ExecutionEnvironment::Custom(_) => todo!(), }) }