Skip to content

Commit 5105fd1

Browse files
authored
fix: Preload injection path (#1243)
1 parent 893370e commit 5105fd1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
## 7.1.1
6+
7+
- fix: Preload injection path (#1243)
8+
59
## 7.1.0
610

711
- feat: Update JavaScript SDKs from [v10.7.0](https://github.com/getsentry/sentry-javascript/releases/tag/10.7.0) to [v10.11.0](https://github.com/getsentry/sentry-javascript/releases/tag/10.11.0) (#1236)

src/main/integrations/preload-injection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import { ElectronMainOptionsInternal } from '../sdk.js';
1111
// to ensure we check for that!
1212
function getPreloadPath(): string | number | undefined {
1313
try {
14-
return require.resolve('../../preload/index.js');
14+
return require.resolve('../../preload/default.js');
1515
} catch (_) {
1616
try {
1717
// This could be ESM
1818
const currentDir = fileURLToPath(import.meta.url);
1919
// Use the CJS preload
20-
return resolve(currentDir, '..', '..', '..', '..', 'preload', 'index.js');
20+
return resolve(currentDir, '..', '..', '..', '..', 'preload', 'default.js');
2121
} catch (_) {
2222
//
2323
}

0 commit comments

Comments
 (0)