We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e826992 commit cbabb03Copy full SHA for cbabb03
package.json
@@ -13,7 +13,17 @@
13
"dist/",
14
"build/"
15
],
16
+ "type": "commonjs",
17
"main": "./build/index.js",
18
+ "exports": {
19
+ "./package.json": "./package.json",
20
+ "./dist/socket.io.js": "./dist/socket.io.js",
21
+ "./dist/socket.io.js.map": "./dist/socket.io.js.map",
22
+ ".": {
23
+ "import": "./wrapper.mjs",
24
+ "require": "./build/index.js"
25
+ }
26
+ },
27
"types": "./build/index.d.ts",
28
"dependencies": {
29
"backo2": "1.0.2",
wrapper.mjs
@@ -0,0 +1,4 @@
1
+import io from "./build/index.js";
2
+
3
+export const Manager = io.Manager;
4
+export default io;
0 commit comments