Merge pull request #28626 from element-hq/t3chguy/web-friendly-buffers

Remove usages of Buffer so we don't need to ship the polyfill
This commit is contained in:
Michael Telatynski 2024-12-04 22:10:30 +00:00 committed by GitHub
commit 085854b125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 24 additions and 34 deletions

View file

@ -231,8 +231,6 @@ module.exports = (env, argv) => {
// Polyfill needed by counterpart
"util": require.resolve("util/"),
// Polyfill needed by matrix-js-sdk/src/crypto
"buffer": require.resolve("buffer/"),
// Polyfill needed by sentry
"process/browser": require.resolve("process/browser"),
},
@ -679,7 +677,6 @@ module.exports = (env, argv) => {
// Automatically load buffer & process modules as we use them without explicitly
// importing them
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
process: "process/browser",
}),