From dceea51e2b31f5c5b777e2feb7903b0b3729ef1e Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Wed, 17 Jun 2015 20:21:57 -0400 Subject: [PATCH] [BUGFIX release] Properly strip debug statements in prod builds. In https://github.com/emberjs/ember.js/pull/11367 we swapped to using babel for module transpilation, which lead to the transpiled output being slightly different than previously with esperanto. The long term solution is to use a babel transform to strip, this will have the benefit of not having this particular issue any longer (this is actually the second time we have had this issue). https://github.com/ember-cli/babel-plugin-filter-imports has been created specifically for this purpose, and we have a roadmap to implementing soonish. --- This adds the new formats to the list of debug statements for defeatureify. (cherry picked from commit ee406a039bbc1b36b4c0d0410589934b522bca50) --- features.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/features.json b/features.json index 9cfca8c0ad1..d7a14836df8 100644 --- a/features.json +++ b/features.json @@ -35,6 +35,16 @@ "Ember.Logger.info", "Ember.default.Logger.info", "Ember.runInDebug", - "Ember.default.runInDebug" + "Ember.default.runInDebug", + "_emberMetalCore.default.deprecate", + "_emberMetalCore.default.warn", + "_emberMetalCore.default.assert", + "_emberMetalCore.default.debug", + "_emberMetalCore.default.runInDebug", + "_emberMetal.default.deprecate", + "_emberMetal.default.warn", + "_emberMetal.default.assert", + "_emberMetal.default.debug", + "_emberMetal.default.runInDebug" ] }