Skip to content

Commit 6a23986

Browse files
fix: make the exports section compatible with Deno 1 (#479)
Co-authored-by: 냥냐챠 <[email protected]>
1 parent 725ebcd commit 6a23986

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@
6565
},
6666
"exports": {
6767
".": {
68-
"import": "./dist/module/index.js",
69-
"require": "./dist/main/index.js"
68+
"node":"./dist/main/index.js",
69+
"browser": "./dist/module/index.js",
70+
"default": "./dist/main/index.js"
7071
},
7172
"./websocket": {
7273
"node": "./dist/WebSocket.js",
@@ -75,4 +76,4 @@
7576
"default": "./dist/WebSocket.native.js"
7677
}
7778
}
78-
}
79+
}

0 commit comments

Comments
 (0)