Skip to content

Commit

Permalink
add worker condition to edge compilation (vercel/turbo#3549)
Browse files Browse the repository at this point in the history
some packages expect `worker` or `browser` condition to work on edge
runtime
  • Loading branch information
sokra committed Feb 1, 2023
1 parent 1b2a240 commit d5de3a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub async fn get_edge_resolve_options_context(

let resolve_options_context = ResolveOptionsContext {
enable_node_modules: true,
custom_conditions: vec!["development".to_string()],
custom_conditions: vec!["worker".to_string(), "development".to_string()],
import_map: Some(next_edge_import_map),
module: true,
..Default::default()
Expand Down

0 comments on commit d5de3a4

Please sign in to comment.