Skip to content

Commit

Permalink
Merge pull request #4800 from kidroca/kidroca/add-rn-performance-flip…
Browse files Browse the repository at this point in the history
…per-plugin

[No QA] Fix regression on web due to #4760
  • Loading branch information
marcaaron authored Aug 24, 2021
2 parents ab18ee8 + c2d1d8e commit 5f6c147
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const metro = {
* By default <React.Profiler> is disabled in production as it adds small overhead
* When CAPTURE_METRICS is set we're explicitly saying that we want to capture metrics
* To enable the <Profiler> for release builds we add these aliases */
if (process.env.CAPTURE_METRICS) {
if (process.env.CAPTURE_METRICS === 'true') {
const path = require('path');
const profilingRenderer = path.resolve(
__dirname,
Expand Down
1 change: 1 addition & 0 deletions config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const includeModules = [
'react-native-modal',
'react-native-onyx',
'react-native-gesture-handler',
'react-native-flipper',
].join('|');

const webpackConfig = {
Expand Down

0 comments on commit 5f6c147

Please sign in to comment.