From 2ba40b9c793b4df02bd9a486f8eb96cffb1a119a Mon Sep 17 00:00:00 2001 From: Corey Powell Date: Mon, 23 Oct 2017 13:35:10 -0500 Subject: [PATCH] Check if environment is production-like in stripped-build-plugins (#5234) --- lib/stripped-build-plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stripped-build-plugins.js b/lib/stripped-build-plugins.js index 9bd2a6cb1f8..45570f1826d 100644 --- a/lib/stripped-build-plugins.js +++ b/lib/stripped-build-plugins.js @@ -59,7 +59,7 @@ module.exports = function(environment) { console.warn('NOT STRIPPING HEIMDALL'); } - if (environment === 'production' || process.env.INSTRUMENT_HEIMDALL === 'true') { + if (/production/.test(environment) || process.env.INSTRUMENT_HEIMDALL === 'true') { postTransformPlugins.push([StripClassCallCheck]); uniqueAdd(filteredImports, 'ember-data/-debug', [ 'assertPolymorphicType'