Skip to content

Commit

Permalink
[BUGFIX release] Properly strip debug statements in prod builds.
Browse files Browse the repository at this point in the history
In #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.
  • Loading branch information
rwjblue committed Jun 18, 2015
1 parent 680f997 commit ee406a0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion features.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}

0 comments on commit ee406a0

Please sign in to comment.