Restore non-interop ES Modules support

This commit is contained in:
Federico Brigante 2019-05-16 16:56:24 +08:00 committed by GitHub
parent b064473589
commit 7c8b90ffb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -385,5 +385,8 @@ Object.defineProperties(is, {
}
});
module.exports = is; // For CommonJS default export support
export default is;
// ES module compatibility
// TODO: Remove this for the next major release
is.default = is;
export = is;