Unverified Commit df213f7a authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Include `scheduler` in React bundle (#8164)

parent 7b33fbbf
...@@ -193,7 +193,7 @@ export default async function getBaseWebpackConfig( ...@@ -193,7 +193,7 @@ export default async function getBaseWebpackConfig(
react: { react: {
name: 'commons', name: 'commons',
chunks: 'all', chunks: 'all',
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/, test: /[\\/]node_modules[\\/](react|react-dom|scheduler)[\\/]/,
}, },
}, },
}, },
...@@ -210,7 +210,7 @@ export default async function getBaseWebpackConfig( ...@@ -210,7 +210,7 @@ export default async function getBaseWebpackConfig(
react: { react: {
name: 'commons', name: 'commons',
chunks: 'all', chunks: 'all',
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/, test: /[\\/]node_modules[\\/](react|react-dom|scheduler)[\\/]/,
}, },
}, },
}, },
......
...@@ -45,7 +45,7 @@ export function getPageChunks( ...@@ -45,7 +45,7 @@ export function getPageChunks(
if (mod.includes('node_modules/')) { if (mod.includes('node_modules/')) {
if ( if (
mod.match( mod.match(
/node_modules\/(@babel|core-js|styled-jsx|string-hash|object-assign|process|react|react-dom|regenerator-runtime|webpack|node-libs-browser)\// /node_modules\/(@babel|core-js|styled-jsx|string-hash|object-assign|process|react|react-dom|scheduler|regenerator-runtime|webpack|node-libs-browser)\//
) )
) { ) {
return null return null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment