Skip to content

Commit df213f7

Browse files
authored
Include scheduler in React bundle (vercel#8164)
1 parent 7b33fbb commit df213f7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/next/build/webpack-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export default async function getBaseWebpackConfig(
193193
react: {
194194
name: 'commons',
195195
chunks: 'all',
196-
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
196+
test: /[\\/]node_modules[\\/](react|react-dom|scheduler)[\\/]/,
197197
},
198198
},
199199
},
@@ -210,7 +210,7 @@ export default async function getBaseWebpackConfig(
210210
react: {
211211
name: 'commons',
212212
chunks: 'all',
213-
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
213+
test: /[\\/]node_modules[\\/](react|react-dom|scheduler)[\\/]/,
214214
},
215215
},
216216
},

packages/next/build/webpack/plugins/chunk-graph-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function getPageChunks(
4545
if (mod.includes('node_modules/')) {
4646
if (
4747
mod.match(
48-
/node_modules\/(@babel|core-js|styled-jsx|string-hash|object-assign|process|react|react-dom|regenerator-runtime|webpack|node-libs-browser)\//
48+
/node_modules\/(@babel|core-js|styled-jsx|string-hash|object-assign|process|react|react-dom|scheduler|regenerator-runtime|webpack|node-libs-browser)\//
4949
)
5050
) {
5151
return null

0 commit comments

Comments
 (0)