Skip to content

Commit

Permalink
fix: Cannot read properties of undefined (reading 'ssr')
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-partly committed Dec 18, 2023
1 parent 33174f9 commit 4a54cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/commonjs/src/resolve-require-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function getRequireResolver(extensions, detectCyclesAndConditional, curre
return { id: wrapId(childId, EXTERNAL_SUFFIX), allowProxy: false };
}
parentMeta.requires.push({ resolved, isConditional });
await analyzeRequiredModule(parentId, resolved, isConditional, rollupContext.load);
await analyzeRequiredModule(parentId, resolved, isConditional, rollupContext.load.bind(rollupContext));
return { id: childId, allowProxy: true };
})
);
Expand Down

0 comments on commit 4a54cef

Please sign in to comment.