Skip to content

Commit

Permalink
[DEV-BUGFIX] Fix instrumentation when running in production (#5333)
Browse files Browse the repository at this point in the history
* fix production instrumented builds
  • Loading branch information
runspired authored and igorT committed Jan 22, 2018
1 parent 6894000 commit c08a8a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ function isProductionEnv() {
return isProd && !isTest;
}

function isInstrumentedBuild() {
return INSTRUMENT_HEIMDALL;
}

module.exports = {
name: 'ember-data',

Expand Down Expand Up @@ -137,7 +141,7 @@ module.exports = {
let withoutPrivate = new Funnel(treeWithVersion, {
exclude: [
'-private',
isProductionEnv() ? '-debug' : false
isProductionEnv() && !isInstrumentedBuild() ? '-debug' : false
].filter(Boolean),

destDir: 'ember-data'
Expand Down

0 comments on commit c08a8a0

Please sign in to comment.