Skip to content

Commit bbb1282

Browse files
authored
fix: provide polyfill for buffer in build (#10554)
Refs #10553
1 parent 01e2390 commit bbb1282

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"@babel/runtime-corejs3": "^7.27.1",
7777
"@scarf/scarf": "=1.4.0",
7878
"base64-js": "^1.5.1",
79+
"buffer": "^6.0.3",
7980
"classnames": "^2.5.1",
8081
"css.escape": "1.5.1",
8182
"deep-extend": "0.6.0",
@@ -130,7 +131,6 @@
130131
"babel-plugin-module-resolver": "=5.0.2",
131132
"babel-plugin-transform-react-remove-prop-types": "=0.4.24",
132133
"body-parser": "^1.19.0",
133-
"buffer": "^6.0.3",
134134
"cheerio": "=1.0.0",
135135
"cors": "^2.8.5",
136136
"cross-env": "=7.0.3",

webpack/_config-builder.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function buildConfig(
126126
fallback: {
127127
fs: false,
128128
stream: require.resolve("stream-browserify"),
129+
buffer: require.resolve("buffer"),
129130
},
130131
},
131132

0 commit comments

Comments
 (0)