bv-ui-core 2.8.1 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/global/index.js +6 -6
- package/package.json +1 -1
package/lib/global/index.js
CHANGED
@@ -19,20 +19,20 @@ var getGlobal = function () {
|
|
19
19
|
global import in all bundle use cases
|
20
20
|
*/
|
21
21
|
if (globalObj && globalObj.__esModule) {
|
22
|
-
const
|
23
|
-
get: function (target, prop
|
22
|
+
const proxyGlobal = new Proxy(globalObj, {
|
23
|
+
get: function (target, prop) {
|
24
24
|
if (prop === 'default') {
|
25
25
|
return target
|
26
26
|
}
|
27
27
|
|
28
|
-
return
|
28
|
+
return target[prop]
|
29
29
|
},
|
30
30
|
|
31
31
|
set: function (target, prop, value) {
|
32
|
-
|
32
|
+
target[prop] = value
|
33
|
+
return true
|
33
34
|
},
|
34
|
-
}
|
35
|
-
const proxyGlobal = new Proxy(globalObj, override)
|
35
|
+
})
|
36
36
|
return proxyGlobal
|
37
37
|
}
|
38
38
|
return globalObj
|