diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-02-24 14:42:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 14:42:45 -0500 |
commit | 9aebc8bc19b1dfd9bce1789018f3f6b784175171 (patch) | |
tree | 760daa99df7479e34195a4339401a3f8f55c450e /cli/worker.rs | |
parent | a27d0885f489f5640e38922fad8c8a1c49ae0aa4 (diff) |
fix: ensure concurrent non-statically analyzable dynamic imports do not sometimes fail (#17923)
Closes #17918
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 4cf4fe862..a112663c9 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -293,8 +293,7 @@ impl CliMainWorker { &mut self, id: ModuleId, ) -> Result<(), AnyError> { - if self.ps.npm_resolver.has_packages() - || self.ps.has_node_builtin_specifier() + if self.ps.npm_resolver.has_packages() || self.ps.graph().has_node_specifier { self.initialize_main_module_for_node().await?; } |