From ed994deca267460f3f2561f536c411be67f34d67 Mon Sep 17 00:00:00 2001 From: yonecdeng <73653404+yonecdeng@users.noreply.github.com> Date: Fri, 26 Jul 2024 00:19:28 +0800 Subject: [PATCH] fix: change global to this (#265) Co-authored-by: dengyongchi Co-authored-by: Anthony Fu --- lib/index.iife.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/index.iife.js b/lib/index.iife.js index 943ba6f..fd017b7 100644 --- a/lib/index.iife.js +++ b/lib/index.iife.js @@ -1,4 +1,10 @@ -var _VueDemiGlobal = typeof globalThis !== 'undefined' ? globalThis : global || self; // from umd +var _VueDemiGlobal = typeof globalThis !== 'undefined' + ? globalThis + : typeof global !== 'undefined' + ? global + : typeof self !== 'undefined' + ? self + : this var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) { if (VueDemi.install) { return VueDemi