Skip to content

Commit

Permalink
Merge pull request RedHatInsights#671 from acosferreira/poc-share-reduc
Browse files Browse the repository at this point in the history
add shared dependencies
  • Loading branch information
matoval authored May 2, 2023
2 parents 90875ef + a5aeacc commit ff0a780
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/dev.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ plugins.push(
requiredVersion: deps['react-router-dom'],
},
},
{
react: { singleton: true, eager: true, requiredVersion: deps.react },
},
{
'react-dom': {
singleton: true,
eager: true,
requiredVersion: deps['react-dom'],
},
},
],
}
)
Expand Down
10 changes: 10 additions & 0 deletions config/prod.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ plugins.push(
requiredVersion: deps['react-router-dom'],
},
},
{
react: { singleton: true, eager: true, requiredVersion: deps.react },
},
{
'react-dom': {
singleton: true,
eager: true,
requiredVersion: deps['react-dom'],
},
},
],
}
)
Expand Down

0 comments on commit ff0a780

Please sign in to comment.