From 7c8b90ffb5340516ea065becce3f545d7c3507ec Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Thu, 16 May 2019 16:56:24 +0800 Subject: [PATCH] Restore non-interop ES Modules support --- source/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;