@samitouri / QOS-React / commits / b15c8492ca

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.

Ruslan Lesiutin committed Jun 20, 2024 at 09:29 UTC b15c8492ca227abff2b1c921dd06e54d421fc415
1 file changed +3
packages/react-devtools-extensions/webpack.backend.js
+3
@@ -74,6 +74,9 @@ module.exports = {
74 'process.env.IS_CHROME': IS_CHROME,
75 'process.env.IS_FIREFOX': IS_FIREFOX,
76 'process.env.IS_EDGE': IS_EDGE,
77 + __IS_CHROME__: IS_CHROME,
78 + __IS_FIREFOX__: IS_FIREFOX,
79 + __IS_EDGE__: IS_EDGE,
80 }),
81 new Webpack.SourceMapDevToolPlugin({
82 filename: '[file].map',