Skip to content

Commit 5eca12f

Browse files
committed
allow require as a global in proxy check
1 parent 3edfc45 commit 5eca12f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/instance/proxy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ if (process.env.NODE_ENV !== 'production') {
88
const allowedGlobals = makeMap(
99
'Infinity,undefined,NaN,isFinite,isNaN,' +
1010
'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
11-
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl'
11+
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
12+
'require' // for Webpack/Browserify
1213
)
1314

1415
hasProxy =

0 commit comments

Comments
 (0)