Skip to content

Commit

Permalink
fix(interactjs): don't assign module.exports in esm package
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Jul 30, 2023
1 parent b2c8bd1 commit f55ac1c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions packages/@interactjs/interactjs/index.stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 _ = {
Expand Down
7 changes: 0 additions & 7 deletions packages/@interactjs/interactjs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 _ = {
Expand Down

0 comments on commit f55ac1c

Please sign in to comment.