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.
1 parent daf0598 commit 76d01c2Copy full SHA for 76d01c2
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
0 commit comments