Skip to content

Commit 297b8c4

Browse files
tayeinteractjs-ci
authored andcommitted
fix(interactjs): don't assign module.exports in esm package
1 parent 8888cfe commit 297b8c4

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

packages/@interactjs/interactjs/index.stub.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ if (process.env.NODE_ENV !== 'production') {
4141
}
4242

4343
export default interact
44-
45-
if (typeof module === 'object' && !!module) {
46-
try {
47-
module.exports = interact
48-
} catch {}
49-
}
50-
5144
;(interact as any).default = interact
5245

5346
const _ = {

packages/@interactjs/interactjs/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ if (process.env.NODE_ENV !== 'production') {
4141
}
4242

4343
export default interact
44-
45-
if (typeof module === 'object' && !!module) {
46-
try {
47-
module.exports = interact
48-
} catch {}
49-
}
50-
5144
;(interact as any).default = interact
5245

5346
const _ = {

0 commit comments

Comments
 (0)