Skip to content

Commit

Permalink
fix: Add react-dom, redux and react-redux to remote component depende…
Browse files Browse the repository at this point in the history
…ncies (#1127)

Allows plugins to connect to the store and to not have to bundle
`react-dom`
  • Loading branch information
alexbassy authored Mar 3, 2023
1 parent 4c7710e commit d6c8a98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/code-studio/src/remote-component.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
* Dependencies for Remote Components
*/
import react from 'react';
import * as redux from 'redux';
import * as reactRedux from 'react-redux';
import ReactDOM from 'react-dom';

// eslint-disable-next-line import/prefer-default-export
export const resolve = {
react,
'react-dom': ReactDOM,
redux,
'react-redux': reactRedux,
};

0 comments on commit d6c8a98

Please sign in to comment.