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.
This commit is contained in:
Ruslan Lesiutin
2024-06-20 09:29:05 +01:00
committed by GitHub
parent 6b4646cbd0
commit b15c8492ca

View File

@@ -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',