Skip to content

Commit 1fc61a3

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 { Socket } from "engine.io-client/debug"; ``` Reference: https://nodejs.org/api/packages.html#subpath-exports Related: https://github.com/socketio/socket.io-client/issues/1586 [1]: fe4d93a
1 parent fe4d93a commit 1fc61a3

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
@@ -13,10 +13,13 @@
1313
".": {
1414
"import": {
1515
"node": "./build/esm-debug/index.js",
16-
"development": "./build/esm-debug/index.js",
1716
"default": "./build/esm/index.js"
1817
},
1918
"require": "./build/cjs/index.js"
19+
},
20+
"./debug": {
21+
"import": "./build/esm-debug/index.js",
22+
"require": "./build/cjs/index.js"
2023
}
2124
},
2225
"types": "build/esm/index.d.ts",

0 commit comments

Comments
 (0)