From d6e29f983098a85875eeaa2c64d36c9de193abe6 Mon Sep 17 00:00:00 2001 From: Mokshit06 <50412128+Mokshit06@users.noreply.github.com> Date: Fri, 10 Nov 2023 02:57:22 +0530 Subject: [PATCH 1/3] Export Store and printStore --- packages/react-devtools-inline/replay.js | 1 + packages/react-devtools-inline/src/replay.js | 4 ++++ packages/react-devtools-inline/webpack.config.js | 1 + 3 files changed, 6 insertions(+) create mode 100644 packages/react-devtools-inline/replay.js create mode 100644 packages/react-devtools-inline/src/replay.js diff --git a/packages/react-devtools-inline/replay.js b/packages/react-devtools-inline/replay.js new file mode 100644 index 0000000000000..e9c622b4f2a78 --- /dev/null +++ b/packages/react-devtools-inline/replay.js @@ -0,0 +1 @@ +module.exports = require('./dist/replay'); diff --git a/packages/react-devtools-inline/src/replay.js b/packages/react-devtools-inline/src/replay.js new file mode 100644 index 0000000000000..3f385da25057f --- /dev/null +++ b/packages/react-devtools-inline/src/replay.js @@ -0,0 +1,4 @@ +/** @flow */ + +export {default as Store} from 'react-devtools-shared/src/devtools/store'; +export {printStore} from 'react-devtools-shared/src/devtools/utils'; diff --git a/packages/react-devtools-inline/webpack.config.js b/packages/react-devtools-inline/webpack.config.js index ca785f773f27d..e6ac8730d768c 100644 --- a/packages/react-devtools-inline/webpack.config.js +++ b/packages/react-devtools-inline/webpack.config.js @@ -40,6 +40,7 @@ module.exports = { backend: './src/backend.js', frontend: './src/frontend.js', hookNames: './src/hookNames.js', + replay: './src/replay.js' }, output: { path: __dirname + '/dist', From 2e7cd5ece398404d33a023b62d5732c98c7ca8e1 Mon Sep 17 00:00:00 2001 From: Mokshit06 <50412128+Mokshit06@users.noreply.github.com> Date: Thu, 30 Nov 2023 01:23:41 +0530 Subject: [PATCH 2/3] Remove printStore export from replay entrypoint --- packages/react-devtools-inline/src/replay.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-devtools-inline/src/replay.js b/packages/react-devtools-inline/src/replay.js index 3f385da25057f..1c22ef3a6e429 100644 --- a/packages/react-devtools-inline/src/replay.js +++ b/packages/react-devtools-inline/src/replay.js @@ -1,4 +1,3 @@ /** @flow */ export {default as Store} from 'react-devtools-shared/src/devtools/store'; -export {printStore} from 'react-devtools-shared/src/devtools/utils'; From a3231fa1c32b6c8f66c3ccab4921834c94feae6e Mon Sep 17 00:00:00 2001 From: Mokshit06 <50412128+Mokshit06@users.noreply.github.com> Date: Tue, 5 Dec 2023 22:29:43 +0530 Subject: [PATCH 3/3] Switch to named exports --- packages/react-devtools-inline/src/replay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-devtools-inline/src/replay.js b/packages/react-devtools-inline/src/replay.js index 1c22ef3a6e429..5b894441089bb 100644 --- a/packages/react-devtools-inline/src/replay.js +++ b/packages/react-devtools-inline/src/replay.js @@ -1,3 +1,3 @@ /** @flow */ -export {default as Store} from 'react-devtools-shared/src/devtools/store'; +export {Store} from 'react-devtools-shared/src/devtools/store';