Skip to content

Commit

Permalink
fix(v2): regression from prioritizing core node_modules logic (#1917)
Browse files Browse the repository at this point in the history
* fix(v2): regression from prioritizing core node_modules logic

* nits
  • Loading branch information
endiliey authored Oct 30, 2019
1 parent 16f10dd commit ca4efb6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/docusaurus/src/webpack/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ca4efb6

Please sign in to comment.