Skip to content

Commit 8aa54db

Browse files
committed
Fix unsafe lookup.
1 parent 6389f7d commit 8aa54db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/integration-tests/utils/generatePage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function generateSentryAlias(): Promise<Record<string, string>> {
4949

5050
const modulePath = path.resolve(PACKAGE_PATH, d);
5151

52-
if (useCompiledModule && bundleKey && BUNDLE_PATHS[d][bundleKey]) {
52+
if (useCompiledModule && bundleKey && BUNDLE_PATHS[d]?.[bundleKey]) {
5353
const bundlePath = path.resolve(modulePath, BUNDLE_PATHS[d][bundleKey]);
5454

5555
return [packageJSON['name'], bundlePath];

0 commit comments

Comments
 (0)