Skip to content

Commit

Permalink
add worker condition to edge compilation (vercel/turborepo#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 authored Feb 1, 2023
1 parent 48ad8c1 commit 44756c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/next-core/src/next_edge/context.rs
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 44756c4

Please sign in to comment.