forked from orbit-oss/is
Restore ability to use default export in CommonJS (#29)
So you can use `require('is')` instead of `require('is').default`.
This commit is contained in:
parent
d075b547fc
commit
59a638b216
1 changed files with 4 additions and 0 deletions
|
|
@ -247,3 +247,7 @@ Object.defineProperties(is, {
|
|||
});
|
||||
|
||||
export default is;
|
||||
|
||||
// For CommonJS default export support
|
||||
module.exports = is;
|
||||
module.exports.default = is;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue