Skip to content

Commit

Permalink
fix(sio-client): do not mangle the "_placeholder" attribute
Browse files Browse the repository at this point in the history
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 `[email protected]`.

[1]: 7085f0e

Related: #5215
  • Loading branch information
darrachequesne committed Oct 22, 2024
1 parent 4865f2e commit ca9e994
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/socket.io-client/support/rollup.config.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const prodBundle = {
mangle: {
properties: {
regex: /^_/,
reserved: ["_placeholder"],
},
},
}),
Expand Down

0 comments on commit ca9e994

Please sign in to comment.