Skip to content

Commit

Permalink
Update CAPTURE_METRICS check in babel.config.js
Browse files Browse the repository at this point in the history
process.env values are always strings
  • Loading branch information
kidroca committed Aug 24, 2021
1 parent 5201038 commit 136f34a
Showing 1 changed file with 1 addition 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

0 comments on commit 136f34a

Please sign in to comment.