Skip to content

Commit

Permalink
add node_modules to webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jan 20, 2018
1 parent 9923631 commit daca25b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ module.exports = {
resolve: {
alias: {
"demo-component": Path.join(repoPackagesDir, "demo-component/src"),
"react": Path.dirname(require.resolve("react/package.json")),
react: Path.dirname(require.resolve("react/package.json")),
"react-dom": Path.dirname(require.resolve("react-dom/package.json"))
},
modules: [
Path.resolve("node_modules"),
Path.join(repoPackagesDir, "demo-component"),
Path.join(repoPackagesDir, "demo-component/node_modules")
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ module.exports = {
resolve: {
alias: {
"demo-component": Path.join(repoPackagesDir, "demo-component/src"),
"react": Path.dirname(require.resolve("react/package.json")),
react: Path.dirname(require.resolve("react/package.json")),
"react-dom": Path.dirname(require.resolve("react-dom/package.json"))
},
modules: [
Path.resolve("node_modules"),
Path.join(repoPackagesDir, "demo-component"),
Path.join(repoPackagesDir, "demo-component/node_modules")
]
Expand Down

0 comments on commit daca25b

Please sign in to comment.