// eslint-disable-next-line import/no-extraneous-dependencies
import interact from '@interactjs/interactjs/index'

export default interact

if (typeof module === 'object' && !!module) {
  try {
    module.exports = interact
  } catch {}
}

;(interact as any).default = interact

// eslint-disable-next-line import/no-extraneous-dependencies
export { default } from '@interactjs/interactjs/index'

--- 
+++ 
@@ -1,2 +1,12 @@
 // eslint-disable-next-line import/no-extraneous-dependencies
-export { default } from '@interactjs/interactjs/index'
+import interact from '@interactjs/interactjs/index'
+
+export default interact
+
+if (typeof module === 'object' && !!module) {
+  try {
+    module.exports = interact
+  } catch {}
+}
+
+;(interact as any).default = interact
Revert "chore: remove redundant module.exports assignment"

Close #895
