Skip to content

Commit

Permalink
add worker condition to edge compilation (#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 and mehulkar committed Feb 1, 2023
1 parent 82ff652 commit c79c690
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 c79c690

Please sign in to comment.