Skip to content

Commit

Permalink
Merge pull request #13979 from rwjblue/fix-debug-build-output
Browse files Browse the repository at this point in the history
Strip debug statements properly in prod builds.
  • Loading branch information
rwjblue authored Jul 31, 2016
2 parents 06ecec2 + 291e28b commit 3a7b78a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ function babelConfigFor(environment) {

var isProduction = (environment === 'production');
if (isProduction) {
plugins.push(filterImports({
'ember-metal/debug': ['assert', 'debug', 'deprecate', 'info', 'runInDebug', 'warn', 'debugSeal']
}));
var debugImportsConfig = {'ember-metal/debug': ['assert', 'debug', 'deprecate', 'info', 'runInDebug', 'warn', 'debugSeal']};
var filterDebugImportsPlugin = filterImports(debugImportsConfig);

filterDebugImportsPlugin._augmentCacheKey = function() {
return JSON.stringify(debugImportsConfig);
};

plugins.push(filterDebugImportsPlugin);
}

return { plugins: plugins };
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"ember-cli-sauce": "^1.4.2",
"ember-cli-yuidoc": "0.8.4",
"ember-publisher": "0.0.7",
"emberjs-build": "0.13.2",
"emberjs-build": "0.13.3",
"express": "^4.5.0",
"finalhandler": "^0.4.0",
"git-repo-info": "^1.1.4",
Expand Down

0 comments on commit 3a7b78a

Please sign in to comment.