We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51f5e7b commit 687623aCopy full SHA for 687623a
packages/react-server-dom-webpack/src/ReactFlightWebpackPlugin.js
@@ -277,8 +277,14 @@ export default class ReactFlightWebpackPlugin {
277
chunkGroup.chunks.forEach(function (c) {
278
// eslint-disable-next-line no-for-of-loops/no-for-of-loops
279
for (const file of c.files) {
280
- if (!(file.endsWith('.js') || file.endsWith('.mjs'))) return;
281
- if (file.endsWith('.hot-update.js') || file.endsWith('.hot-update.mjs')) return;
+ if (!(file.endsWith('.js') || file.endsWith('.mjs'))) {
+ return;
282
+ }
283
+ if (
284
+ file.endsWith('.hot-update.js') ||
285
+ file.endsWith('.hot-update.mjs')
286
+ )
287
288
chunks.push(c.id, file);
289
break;
290
}
0 commit comments