diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-04 09:52:44 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-12-04 09:52:44 +0800 |
commit | d12b99883bbf73575cd2e14ebba98b1ea1934004 (patch) | |
tree | 784592d5a7d9034496cfedafa1732d5046d5af8c /packages/instant/webpack.config.js | |
parent | 1498e013d083ed3815f5d5ea2de93a848161ed07 (diff) | |
parent | a1e985a1cac46ecbc54c7ef5b846fb5faf2bede2 (diff) | |
download | dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.gz dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.bz2 dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.lz dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.xz dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.zst dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/website/instant-configurator
Diffstat (limited to 'packages/instant/webpack.config.js')
-rw-r--r-- | packages/instant/webpack.config.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js index a1db01db9..e74cf36d9 100644 --- a/packages/instant/webpack.config.js +++ b/packages/instant/webpack.config.js @@ -71,6 +71,7 @@ const generateConfig = (dischargeTarget, heapConfigOptions, rollbarConfigOptions `Must define heap analytics id in ENV var ${heapAnalyticsIdEnvName} when building for ${dischargeTarget}`, ); } + const heapEnabled = heapAnalyticsId && (nodeEnv !== 'development' || process.env.INSTANT_HEAP_FORCE_DEVELOPMENT); const rollbarTokens = getRollbarTokens(dischargeTarget, rollbarConfigOptions.rollbarRequired); const rollbarEnabled = @@ -92,6 +93,7 @@ const generateConfig = (dischargeTarget, heapConfigOptions, rollbarConfigOptions GIT_SHA: JSON.stringify(GIT_SHA), NPM_PACKAGE_VERSION: JSON.stringify(process.env.npm_package_version), ROLLBAR_ENABLED: rollbarEnabled, + HEAP_ENABLED: heapEnabled }; if (dischargeTarget) { envVars.INSTANT_DISCHARGE_TARGET = JSON.stringify(dischargeTarget); |