From d6c8a988d62157abfb8daadbff5db3eaef21a247 Mon Sep 17 00:00:00 2001 From: Alex Bass Date: Fri, 3 Mar 2023 16:26:12 +0100 Subject: [PATCH] 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` --- packages/code-studio/src/remote-component.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/code-studio/src/remote-component.config.js b/packages/code-studio/src/remote-component.config.js index 0c99ece3a0..d820927476 100644 --- a/packages/code-studio/src/remote-component.config.js +++ b/packages/code-studio/src/remote-component.config.js @@ -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, };