- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.8k
 
Open
Description
Hi, I am using module federation to build a application
my remote webpack conf:
// remote webpack
shared: {
  ...deps,
  react: {
    singleton: true,
    import: false,
    eager: false,
    version: '0',
    requiredVersion: "*"
  },
  'react-dom': {
    singleton: true,
    import: false,
    eager: false,
    version: '0',
    requiredVersion: "*"
  },
},
my host webpack conf:
// host webpack
shared: {
  react: {
    eager: true,
    singleton: true,
    requiredVersion: "16.14.0"
  },
  'react-dom': {
    eager: true,
    singleton: true,
    requiredVersion: "16.14.0"
  }
},
//...
externals: {
  react: 'React',
  'react-dom': 'ReactDOM'
},
And I use <script> to import react and react-dom from public/index.html
what should I do?
thanks for your help
Metadata
Metadata
Assignees
Labels
No labels
