UNPKG

ember-cli

Version:

Command line tool for developing ambitious ember.js apps

27 lines (19 loc) 638 B
'use strict'; let _hasWarnedLegacyViz = false; function vizEnabled() { let isEnabled = process.env.BROCCOLI_VIZ === '1'; let isLegacyEnabled = !!process.env.BROCCOLI_VIZ && !isEnabled; if (isLegacyEnabled && !_hasWarnedLegacyViz) { // TODO: this.ui console.warn(`Please set BROCCOLI_VIZ=1 to enable visual instrumentation, rather than '${process.env.BROCCOLI_VIZ}'`); _hasWarnedLegacyViz = true; } return isEnabled || isLegacyEnabled; } function instrumentationEnabled() { return vizEnabled() || process.env.EMBER_CLI_INSTRUMENTATION === '1'; } module.exports = { vizEnabled, instrumentationEnabled, };