Skip to content

Commit

Permalink
fix edge condition in environment (vercel/turborepo#7912)
Browse files Browse the repository at this point in the history
### Description

provide correct conditions for edge
### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2915
  • Loading branch information
sokra authored Apr 8, 2024
1 parent 211eed3 commit f1f7e08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/turbopack-core/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ impl Environment {
Vc::cell(vec!["node".to_string()])
}
ExecutionEnvironment::Browser(_) => Vc::<Vec<String>>::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!(),
})
}
Expand Down

0 comments on commit f1f7e08

Please sign in to comment.