Skip to content

Commit

Permalink
feat: globalThis is not defined below chrome52 (#263)
Browse files Browse the repository at this point in the history
Co-authored-by: dengyongchi <[email protected]>
  • Loading branch information
yonecdeng and dengyongchi authored Jul 23, 2024
1 parent 6fe0e6a commit 9f3f4ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/index.iife.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var _VueDemiGlobal = typeof globalThis !== 'undefined' ? globalThis : global || self; // from umd
var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
if (VueDemi.install) {
return VueDemi
Expand Down Expand Up @@ -113,7 +114,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
}
return VueDemi
})(
((globalThis || self).VueDemi = (globalThis || self).VueDemi || (typeof VueDemi !== 'undefined' ? VueDemi : {})),
(globalThis || self).Vue || (typeof Vue !== 'undefined' ? Vue : undefined),
(globalThis || self).VueCompositionAPI || (typeof VueCompositionAPI !== 'undefined' ? VueCompositionAPI : undefined)
(_VueDemiGlobal.VueDemi = _VueDemiGlobal.VueDemi || (typeof VueDemi !== 'undefined' ? VueDemi : {})),
_VueDemiGlobal.Vue || (typeof Vue !== 'undefined' ? Vue : undefined),
_VueDemiGlobal.VueCompositionAPI || (typeof VueCompositionAPI !== 'undefined' ? VueCompositionAPI : undefined)
);

0 comments on commit 9f3f4ec

Please sign in to comment.