Skip to content

Commit

Permalink
Add types condition
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Nov 22, 2024
1 parent 0a2ef17 commit 207e815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turbo-trace/src/tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ impl Tracer {
.with_main_field("types")
// Condition names are used to determine which export to use when importing a module.
// We add a bunch so oxc_resolver can resolve all kinds of imports.
.with_condition_names(&["import", "require", "node", "default"]);
.with_condition_names(&["import", "require", "node", "types", "default"]);

if let Some(ts_config) = self.ts_config.take() {
options.tsconfig = Some(TsconfigOptions {
Expand Down

0 comments on commit 207e815

Please sign in to comment.