mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
fix(v2): regression from prioritizing core node_modules logic (#1917)
* fix(v2): regression from prioritizing core node_modules logic * nits
This commit is contained in:
parent
16f10dd32a
commit
ca4efb6428
1 changed files with 4 additions and 2 deletions
|
@ -54,9 +54,11 @@ export function createBaseConfig(
|
|||
// We want `@docusaurus/core` own dependencies/`node_modules` to "win" if there is conflict
|
||||
// Example: if there is core-js@3 in user's own node_modules, but core depends on
|
||||
// core-js@2, we should use core-js@2.
|
||||
modules: module.paths.concat([
|
||||
modules: [
|
||||
path.resolve(__dirname, '..', '..', 'node_modules'),
|
||||
'node_modules',
|
||||
path.resolve(fs.realpathSync(process.cwd()), 'node_modules'),
|
||||
]),
|
||||
],
|
||||
},
|
||||
optimization: {
|
||||
removeAvailableModules: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue