From f55ac1c2edc645449b33a233680a1a83a19a7578 Mon Sep 17 00:00:00 2001 From: Taye Adeyemi Date: Sun, 30 Jul 2023 23:26:22 +0200 Subject: [PATCH] fix(interactjs): don't assign module.exports in esm package --- packages/@interactjs/interactjs/index.stub.ts | 7 ------- packages/@interactjs/interactjs/index.ts | 7 ------- 2 files changed, 14 deletions(-) diff --git a/packages/@interactjs/interactjs/index.stub.ts b/packages/@interactjs/interactjs/index.stub.ts index 814033cb9..380c4e5fd 100644 --- a/packages/@interactjs/interactjs/index.stub.ts +++ b/packages/@interactjs/interactjs/index.stub.ts @@ -41,13 +41,6 @@ if (process.env.NODE_ENV !== 'production') { } export default interact - -if (typeof module === 'object' && !!module) { - try { - module.exports = interact - } catch {} -} - ;(interact as any).default = interact const _ = { diff --git a/packages/@interactjs/interactjs/index.ts b/packages/@interactjs/interactjs/index.ts index 814033cb9..380c4e5fd 100644 --- a/packages/@interactjs/interactjs/index.ts +++ b/packages/@interactjs/interactjs/index.ts @@ -41,13 +41,6 @@ if (process.env.NODE_ENV !== 'production') { } export default interact - -if (typeof module === 'object' && !!module) { - try { - module.exports = interact - } catch {} -} - ;(interact as any).default = interact const _ = {