mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Remove resolve rule (#6133)
Fixes #6117 I'm not entirely sure why we had this rule in the first place. I think for some tests related things when we didn't have a monorepo yet. However it could also be related to bundle sizes. I'll compare that when the build finishes. The reason for #6117 is that we added `react-is` to the dependency tree of Next.js to check valid elements. react-redux uses hoist-non-react-statics which ships a different version of react-is in this case, one that has `ReactIs.isMemo`
This commit is contained in:
parent
adfdc79842
commit
7ecf675834
|
@ -181,7 +181,6 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
|
|||
// Disable .mjs for node_modules bundling
|
||||
extensions: isServer ? ['.wasm', '.js', '.mjs', '.jsx', '.json'] : ['.wasm', '.mjs', '.js', '.jsx', '.json'],
|
||||
modules: [
|
||||
NEXT_PROJECT_ROOT_NODE_MODULES,
|
||||
'node_modules',
|
||||
...nodePathList // Support for NODE_PATH environment variable
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue