Skip to content

Commit 60edecb

Browse files
1 parent eb5fdbd commit 60edecb

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

client-dist/socket.io.esm.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client-dist/socket.io.esm.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class Server<
238238
this.clientPathRegex = new RegExp(
239239
"^" +
240240
escapedPath +
241-
"/socket\\.io(\\.min|\\.msgpack\\.min)?\\.js(\\.map)?(?:\\?|$)"
241+
"/socket\\.io(\\.msgpack|\\.esm)?(\\.min)?\\.js(\\.map)?(?:\\?|$)"
242242
);
243243
return this;
244244
}

test/socket.io.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ describe("socket.io", () => {
125125
testSourceMap("socket.io.msgpack.min.js.map")
126126
);
127127

128+
it("should serve the ESM bundle", testSource("socket.io.esm.min.js"));
129+
130+
it(
131+
"should serve the source map for the ESM bundle",
132+
testSourceMap("socket.io.esm.min.js.map")
133+
);
134+
128135
it("should handle 304", (done) => {
129136
const srv = createServer();
130137
new Server(srv);

0 commit comments

Comments
 (0)