Skip to content

Commit c3e9b5d

Browse files
committed
fix: can't use require though
1 parent f0220a6 commit c3e9b5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/replay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ let replay
44
let readRecordingRaw, writeRecording
55

66
function loadReplayBundle() {
7-
if (process.env.EXODUS_TEST_ENVIRONMENT === 'bundle' || process.features.require_module) {
7+
// TODO: also under process.features.require_module
8+
if (process.env.EXODUS_TEST_ENVIRONMENT === 'bundle') {
89
replay = require('@exodus/replay') // synchronous
910
} else if (!replay) {
1011
throw new Error('Failed to load @exodus/replay')

0 commit comments

Comments
 (0)