Skip to content

Commit 80f6b63

Browse files
committed
fix: hot fixing ES5 literals in index.js
1 parent 0d0d164 commit 80f6b63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
'use strict'
22

3-
let evalAllowed = false;
3+
var evalAllowed = false;
44
try {
55
eval('evalAllowed = true');
66
} catch (e) {
77
// eval not allowed due to CSP
88
}
99

1010
// RHL needs setPrototypeOf to operate Component inheritance, and eval to patch methods
11-
const platformSupported = !!Object.setPrototypeOf && evalAllowed;
11+
var platformSupported = !!Object.setPrototypeOf && evalAllowed;
1212

1313
if (!module.hot || process.env.NODE_ENV === 'production' || !platformSupported) {
1414
if (module.hot) {

0 commit comments

Comments
 (0)