Skip to content

Commit

Permalink
fix(docz-core): node path resolve modules merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 17, 2018
1 parent 7a79adb commit 27102fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/docz-core/src/webpack/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as path from 'path'
import { Configuration } from 'webpack'
import Config from 'webpack-chain'
import envDotProp from 'env-dot-prop'

import * as loaders from './loaders'
import * as plugins from './plugins'
Expand Down Expand Up @@ -101,18 +102,17 @@ export const createConfig = (args: Args, env: Env) => async (
config.resolve.alias.set('react-native$', 'react-native-web')

config.resolve.modules
// prioritize our own
.add(paths.ownNodeModules)
.add(paths.appNodeModules)
.add('node_modules')
.add(srcPath)
.add(paths.root)
.merge([
.merge(
envDotProp
.get('node.path')
.split(path.delimiter)
.filter(Boolean),
])
.filter(Boolean)
)

config.resolveLoader
.set('symlinks', true)
Expand Down

0 comments on commit 27102fd

Please sign in to comment.