Skip to content

Commit 8fc38b7

Browse files
gatsbybotpieh
andauthored
fix: pin webpack (#39264) (#39265)
* fix: pin webpack * fix: origin.module can be null now (cherry picked from commit dae8081) Co-authored-by: Michal Piechowiak <[email protected]>
1 parent 0469c58 commit 8fc38b7

File tree

5 files changed

+280
-141
lines changed

5 files changed

+280
-141
lines changed

packages/gatsby-graphiql-explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"react-dom": "^18.2.0",
5656
"regenerator-runtime": "^0.13.11",
5757
"style-loader": "^3.3.3",
58-
"webpack": "^5.88.1",
58+
"webpack": "~5.98.0",
5959
"webpack-cli": "^5.1.4"
6060
},
6161
"engines": {

packages/gatsby-plugin-mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"del-cli": "^5.0.0",
5959
"opentracing": "^0.14.7",
6060
"typescript": "^5.1.6",
61-
"webpack": "^5.88.1"
61+
"webpack": "~5.98.0"
6262
},
6363
"jest": {
6464
"testEnvironment": "node"

packages/gatsby/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
"type-of": "^2.0.1",
170170
"url-loader": "^4.1.1",
171171
"uuid": "^8.3.2",
172-
"webpack": "^5.88.1",
172+
"webpack": "~5.98.0",
173173
"webpack-dev-middleware": "^5.3.4",
174174
"webpack-merge": "^5.9.0",
175175
"webpack-stats-plugin": "^1.1.3",

packages/gatsby/src/utils/webpack/get-ssr-chunk-hashes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function getHashes(
2525

2626
for (const childChunkGroup of chunkGroup.childrenIterable) {
2727
const isNotImportedByAsyncRequires = childChunkGroup.origins.every(
28-
origin => !origin.module.identifier().includes(`async-requires`)
28+
origin =>
29+
!origin.module || !origin.module.identifier().includes(`async-requires`)
2930
)
3031

3132
if (isNotImportedByAsyncRequires) {

0 commit comments

Comments
 (0)