Skip to content

Commit

Permalink
add react-dom to webpack-alias
Browse files Browse the repository at this point in the history
  • Loading branch information
didi0613 committed Jan 20, 2018
1 parent 9bdfefd commit e8047ca
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,7 +6,8 @@ module.exports = {
resolve: {
alias: {
"demo-component": Path.join(repoPackagesDir, "demo-component/src"),
"react": Path.resolve(__dirname, "../../../node_modules", "react")
"react": Path.resolve(__dirname, "../../../node_modules", "react"),
"react-dom": Path.resolve(__dirname, "../../../node_modules", "react-dom")
},
modules: [
Path.join(repoPackagesDir, "demo-component"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = {
resolve: {
alias: {
"demo-component": Path.join(repoPackagesDir, "demo-component/src"),
"react": Path.resolve(__dirname, "../../../node_modules", "react")
"react": Path.resolve(__dirname, "../../../node_modules", "react"),
"react-dom": Path.resolve(__dirname, "../../../node_modules", "react-dom")
},
modules: [
Path.join(repoPackagesDir, "demo-component"),
Expand Down

0 comments on commit e8047ca

Please sign in to comment.