Skip to content

Commit

Permalink
update webpack alias
Browse files Browse the repository at this point in the history
  • Loading branch information
didi0613 committed Jan 20, 2018
1 parent b4d39a1 commit 5791a25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module.exports = {
resolve: {
alias: {
"demo-component": Path.join(repoPackagesDir, "demo-component/src"),
"react": Path.resolve(__dirname, "../../../node_modules", "react"),
"react-dom": Path.resolve(__dirname, "../../../node_modules", "react-dom")
"react": Path.dirname(require.resolve("react/package.json")),
"react-dom": Path.dirname(require.resolve("react-dom/package.json"))
},
modules: [
Path.join(repoPackagesDir, "demo-component"),
Expand Down

0 comments on commit 5791a25

Please sign in to comment.