Skip to content

Commit 6f7dfe1

Browse files
authored
Make helpers.ts compatible with ie11 (vercel#15973)
Fixes vercel#15680 This does not solve the issue that an error triggered will fail on shadowroots being created, however it does fix the general failure Closes vercel#15825
1 parent 7fc92a6 commit 6f7dfe1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/react-refresh-utils/internal/helpers.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,11 @@ function scheduleUpdate() {
163163
}, 30)
164164
}
165165

166+
// Needs to be compatible with IE11
166167
export default {
167-
registerExportsForReactRefresh,
168-
isReactRefreshBoundary,
169-
shouldInvalidateReactRefreshBoundary,
170-
getRefreshBoundarySignature,
171-
scheduleUpdate,
168+
registerExportsForReactRefresh: registerExportsForReactRefresh,
169+
isReactRefreshBoundary: isReactRefreshBoundary,
170+
shouldInvalidateReactRefreshBoundary: shouldInvalidateReactRefreshBoundary,
171+
getRefreshBoundarySignature: getRefreshBoundarySignature,
172+
scheduleUpdate: scheduleUpdate,
172173
}

0 commit comments

Comments
 (0)