Skip to content

Commit b15c849

Browse files
authored
fix[react-devtools/extensions]: propagate globals from env (#29963)
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.
1 parent 6b4646c commit b15c849

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-devtools-extensions/webpack.backend.js

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ module.exports = {
7474
'process.env.IS_CHROME': IS_CHROME,
7575
'process.env.IS_FIREFOX': IS_FIREFOX,
7676
'process.env.IS_EDGE': IS_EDGE,
77+
__IS_CHROME__: IS_CHROME,
78+
__IS_FIREFOX__: IS_FIREFOX,
79+
__IS_EDGE__: IS_EDGE,
7780
}),
7881
new Webpack.SourceMapDevToolPlugin({
7982
filename: '[file].map',

0 commit comments

Comments
 (0)