diff --git a/src/babel/transformation/templates/helper-interop-require-wildcard.js b/src/babel/transformation/templates/helper-interop-require-wildcard.js index 61411d8723..1d625f5d1e 100644 --- a/src/babel/transformation/templates/helper-interop-require-wildcard.js +++ b/src/babel/transformation/templates/helper-interop-require-wildcard.js @@ -3,7 +3,7 @@ return obj; } else { var newObj = {}; - if (typeof obj === "object" && obj !== null) { + if (obj !== null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; }