Skip to content

Commit

Permalink
Check if environment is production-like in stripped-build-plugins (#5234
Browse files Browse the repository at this point in the history
)
  • Loading branch information
IceDragon200 authored and bmac committed Oct 23, 2017
1 parent 9cf542b commit 2ba40b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stripped-build-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2ba40b9

Please sign in to comment.