diff --git a/dist/index.js b/dist/index.js index 2d02095..45b7718 100644 --- a/dist/index.js +++ b/dist/index.js @@ -39,7 +39,11 @@ function getAugmentedNamespace(n) { var f = n.default; if (typeof f == "function") { var a = function a () { - if (this instanceof a) { + var isInstance = false; + try { + isInstance = this instanceof a; + } catch {} + if (isInstance) { return Reflect.construct(f, arguments, this.constructor); } return f.apply(this, arguments);