diff --git a/source/index.ts b/source/index.ts index 8b0de49..48658c7 100644 --- a/source/index.ts +++ b/source/index.ts @@ -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;