Skip to content

Commit d6c8a98

Browse files
authored
fix: Add react-dom, redux and react-redux to remote component dependencies (#1127)
Allows plugins to connect to the store and to not have to bundle `react-dom`
1 parent 4c7710e commit d6c8a98

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/code-studio/src/remote-component.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@
55
* Dependencies for Remote Components
66
*/
77
import react from 'react';
8+
import * as redux from 'redux';
9+
import * as reactRedux from 'react-redux';
10+
import ReactDOM from 'react-dom';
811

912
// eslint-disable-next-line import/prefer-default-export
1013
export const resolve = {
1114
react,
15+
'react-dom': ReactDOM,
16+
redux,
17+
'react-redux': reactRedux,
1218
};

0 commit comments

Comments
 (0)