Skip to content

Commit ed994de

Browse files
yonecdengdengyongchiantfu
authored
fix: change global to this (#265)
Co-authored-by: dengyongchi <[email protected]> Co-authored-by: Anthony Fu <[email protected]>
1 parent bf46f2d commit ed994de

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/index.iife.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
var _VueDemiGlobal = typeof globalThis !== 'undefined' ? globalThis : global || self; // from umd
1+
var _VueDemiGlobal = typeof globalThis !== 'undefined'
2+
? globalThis
3+
: typeof global !== 'undefined'
4+
? global
5+
: typeof self !== 'undefined'
6+
? self
7+
: this
28
var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
39
if (VueDemi.install) {
410
return VueDemi

0 commit comments

Comments
 (0)