Skip to content

Commit 4cdf388

Browse files
committed
feat: add Buffer dependency and update rsbuild polyfill configuration
1 parent 82dfd7f commit 4cdf388

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

packages/service-worker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"@walletconnect/core": "2.9.1",
6464
"@walletconnect/sign-client": "2.9.1",
6565
"@walletconnect/utils": "2.9.2",
66+
"Buffer": "6.0.3",
6667
"argon2-browser": "1.18.0",
6768
"bip32": "2.0.6",
6869
"bip39": "3.0.4",

packages/service-worker/rsbuild.worker.common.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ export default defineConfig(() => {
5858
},
5959
},
6060
plugins: [
61-
pluginNodePolyfill(),
61+
pluginNodePolyfill({
62+
overrides: {
63+
buffer: 'buffer',
64+
},
65+
}),
6266
pluginReact({
6367
swcReactOptions: {
6468
refresh: false,

yarn.lock

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4433,6 +4433,7 @@ __metadata:
44334433
"@walletconnect/sign-client": "npm:2.9.1"
44344434
"@walletconnect/types": "npm:2.9.1"
44354435
"@walletconnect/utils": "npm:2.9.2"
4436+
Buffer: "npm:6.0.3"
44364437
argon2-browser: "npm:1.18.0"
44374438
babel-jest: "npm:29.7.0"
44384439
babel-loader: "npm:9.1.3"
@@ -13341,6 +13342,16 @@ __metadata:
1334113342
languageName: node
1334213343
linkType: hard
1334313344

13345+
"Buffer@npm:6.0.3":
13346+
version: 6.0.3
13347+
resolution: "Buffer@npm:6.0.3::__archiveUrl=https%3A%2F%2Fregistry.npmjs.org%2Fbuffer%2F-%2Fbuffer-6.0.3.tgz"
13348+
dependencies:
13349+
base64-js: "npm:^1.3.1"
13350+
ieee754: "npm:^1.2.1"
13351+
checksum: 10c0/e64e8f520dbe983868c5a0e8f8e8a156d6f8f4b038f45f47a170e3431ee504a37a1230bd2c4bfdbb8c0f374f4dc606829e9010e04c19a3bf6b6b1675c65d81ea
13352+
languageName: node
13353+
linkType: hard
13354+
1334413355
"JSONStream@npm:^1.0.4":
1334513356
version: 1.3.5
1334613357
resolution: "JSONStream@npm:1.3.5"

0 commit comments

Comments
 (0)