Currently, I am developing modules to be integrated into a project. These modules share common dependencies, resulting in the duplication of packaged dependencies within the bundle when using webpack. To resolve this issue, I have identified and set these dependencies as external.
For example:
external: {
'react':'react',
'react-dom':'react-dom'
}
However, I am currently faced with the challenge of consolidating these dependencies into a single common JS file that can be utilized across all modules.