Skip to content

Commit

Permalink
refactor: expose the ESM build with debug (bis)
Browse files Browse the repository at this point in the history
This reverts the previous commit ([1]), and expose the ESM build that
includes the debug package on a subpath:

```js
import { Socket } from "socket.io-client/debug";
```

Reference: https://nodejs.org/api/packages.html#subpath-exports

Related: #1586

[1]: 781d753
  • Loading branch information
darrachequesne committed Jun 28, 2023
1 parent 630ff41 commit 4b150f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -25,10 +25,13 @@
"types": "./build/esm/index.d.ts",
"import": {
"node": "./build/esm-debug/index.js",
"development": "./build/esm-debug/index.js",
"default": "./build/esm/index.js"
},
"require": "./build/cjs/index.js"
},
"./debug": {
"import": "./build/esm-debug/index.js",
"require": "./build/cjs/index.js"
}
},
"types": "./build/esm/index.d.ts",
Expand Down

0 comments on commit 4b150f9

Please sign in to comment.