Skip to content

Commit 71d376f

Browse files
committed
fix: Add string_decoder in webpack fallback config
1 parent b4c612b commit 71d376f

File tree

3 files changed

+1722
-2006
lines changed

3 files changed

+1722
-2006
lines changed

lib/presets/custom/next/compute/config.js

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const config = {
8585
'next/dist/compiled/etag': `${nextNodePresetPath}/custom-server/12.3.1/util/etag.js`,
8686
'@fastly/http-compute-js': require.resolve('@fastly/http-compute-js'),
8787
accepts: require.resolve('accepts'),
88+
string_decoder: require.resolve('string_decoder/'),
8889
},
8990
},
9091
},

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"@angular/cli": "^16.2.0",
3535
"@babel/generator": "^7.23.0",
3636
"@babel/parser": "^7.23.0",
37-
"@babel/types": "^7.23.0",
3837
"@babel/traverse": "^7.23.0",
38+
"@babel/types": "^7.23.0",
3939
"@edge-runtime/node-utils": "^2.1.1",
4040
"@edge-runtime/primitives": "^3.0.4",
4141
"@fastly/http-compute-js": "^1.0.0",
@@ -77,6 +77,7 @@
7777
"signale": "^1.4.0",
7878
"stream-browserify": "^3.0.0",
7979
"stream-http": "^3.2.0",
80+
"string_decoder": "^1.3.0",
8081
"url": "^0.11.1",
8182
"util": "^0.12.5",
8283
"webpack": "^5.84.0",

0 commit comments

Comments
 (0)