We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2268afd + f3c6412 commit 0d4725eCopy full SHA for 0d4725e
packages/qwik/src/optimizer/src/plugins/plugin.ts
@@ -759,9 +759,8 @@ export function createQwikPlugin(optimizerOptions: OptimizerOptions = {}) {
759
// unchanged imports are not missing in our internal transform cache
760
// This can happen in the repl when the plugin is re-initialized
761
// and possibly in other places
762
- for (const id of deps.values()) {
763
- await ctx.load({ id });
764
- }
+ // NOTE: this should be Promise.all to avoid deadlocks
+ await Promise.all([...deps.values()].map((id) => ctx.load({ id })));
765
766
ctx.addWatchFile(id);
767
starters/e2e/qwikcity/nav.spec.ts
@@ -1,4 +1,3 @@
1
-import { $ } from "bun";
2
import {
3
assertPage,
4
getScrollHeight,
0 commit comments