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 "engine.io-client/debug";
```

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

Related: socketio/socket.io-client#1586

[1]: fe4d93a
  • Loading branch information
darrachequesne committed Jun 28, 2023
1 parent fe4d93a commit 1fc61a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -13,10 +13,13 @@
".": {
"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 1fc61a3

Please sign in to comment.