Skip to content

Commit 410c2bd

Browse files
author
Ives van Hoorne
committed
Fix SW error
1 parent 30e62e7 commit 410c2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/sandbox/eval/transpilers/babel/babel-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ self.addEventListener('message', async event => {
129129
['babel-plugin-detective', { source: true, nodes: true }],
130130
];
131131

132-
if (sandboxOptions.infiniteLoopProtection) {
132+
if (!sandboxOptions || sandboxOptions.infiniteLoopProtection) {
133133
plugins.push('babel-plugin-transform-prevent-infinite-loops');
134134
}
135135

0 commit comments

Comments
 (0)