Skip to content

Commit 84ec6cf

Browse files
refactor: expose the ESM build with debug (bis)
This reverts the previous commit ([1]), and expose the ESM build that includes the debug package on a subpath: ```js import { io } from "socket.io-client/debug"; ``` Reference: https://nodejs.org/api/packages.html#subpath-exports Related: https://github.com/socketio/socket.io-client/issues/1586 [1]: 781d753
1 parent 630ff41 commit 84ec6cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525
"types": "./build/esm/index.d.ts",
2626
"import": {
2727
"node": "./build/esm-debug/index.js",
28-
"development": "./build/esm-debug/index.js",
2928
"default": "./build/esm/index.js"
3029
},
3130
"require": "./build/cjs/index.js"
31+
},
32+
"./debug": {
33+
"import": "./build/esm-debug/index.js",
34+
"require": "./build/cjs/index.js"
3235
}
3336
},
3437
"types": "./build/esm/index.d.ts",

0 commit comments

Comments
 (0)