Skip to content

Commit ca9e994

Browse files
committedOct 22, 2024
fix(sio-client): do not mangle the "_placeholder" attribute
The "_placeholder" attribute is used when sending binary data, and was incorrectly mangled (converted to a random short property, like "it", to reduce the bundle size). This bug was introduced in [1], included in `socket.io-client@4.8.0`. [1]: 7085f0e Related: #5215
1 parent 4865f2e commit ca9e994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/socket.io-client/support/rollup.config.umd.js

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const prodBundle = {
5252
mangle: {
5353
properties: {
5454
regex: /^_/,
55+
reserved: ["_placeholder"],
5556
},
5657
},
5758
}),

0 commit comments

Comments
 (0)