From b15c8492ca227abff2b1c921dd06e54d421fc415 Mon Sep 17 00:00:00 2001 From: Ruslan Lesiutin Date: Thu, 20 Jun 2024 09:29:05 +0100 Subject: [PATCH] fix[react-devtools/extensions]: propagate globals from env (#29963) Somehow missed this while working on https://github.com/facebook/react/pull/29869. With these changes, manual inspection of the `react_devtools_backend_compact.js` doesn't have any occurences of `__IS_FIREFOX__` flag. --- packages/react-devtools-extensions/webpack.backend.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-devtools-extensions/webpack.backend.js b/packages/react-devtools-extensions/webpack.backend.js index 20dc0e3a9fd20..a8069184a4aaf 100644 --- a/packages/react-devtools-extensions/webpack.backend.js +++ b/packages/react-devtools-extensions/webpack.backend.js @@ -74,6 +74,9 @@ module.exports = { 'process.env.IS_CHROME': IS_CHROME, 'process.env.IS_FIREFOX': IS_FIREFOX, 'process.env.IS_EDGE': IS_EDGE, + __IS_CHROME__: IS_CHROME, + __IS_FIREFOX__: IS_FIREFOX, + __IS_EDGE__: IS_EDGE, }), new Webpack.SourceMapDevToolPlugin({ filename: '[file].map',