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:
Sindre Sorhus 2017-11-07 09:58:49 +07:00 committed by GitHub
parent d075b547fc
commit 59a638b216
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,3 +247,7 @@ Object.defineProperties(is, {
});
export default is;
// For CommonJS default export support
module.exports = is;
module.exports.default = is;