Skip to content

Commit

Permalink
[ember-cli-eyeglass] Reset the build cache if there's a build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Mar 30, 2019
1 parent f26827a commit 9fec3b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ember-cli-eyeglass/src/index.ts
Expand Up @@ -149,6 +149,10 @@ const EMBER_CLI_EYEGLASS = {
appInfo.sessionCache.clear();
}
},
buildError(_error) {
debugBuild("Build Failed.");
this._resetCaches();
},
postprocessTree(type, tree) {
let addonInfo = EYEGLASS_INFO_PER_ADDON.get(this);
if (type === "all" && addonInfo.isApp) {
Expand Down

0 comments on commit 9fec3b0

Please sign in to comment.