Skip to content

Commit

Permalink
fix[react-devtools/extensions]: propagate globals from env (#29963)
Browse files Browse the repository at this point in the history
Somehow missed this while working on
#29869.

With these changes, manual inspection of the
`react_devtools_backend_compact.js` doesn't have any occurences of
`__IS_FIREFOX__` flag.
  • Loading branch information
hoxyq authored Jun 20, 2024
1 parent 6b4646c commit b15c849
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react-devtools-extensions/webpack.backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b15c849

Please sign in to comment.