Skip to content

Commit

Permalink
Avoid patching the template compiler on Ember 3.26.
Browse files Browse the repository at this point in the history
The fixes that landed on canary (for 3.27) have been backported and
released in 3.26.0-beta.x.
  • Loading branch information
rwjblue committed Mar 2, 2021
1 parent 8e5f1f1 commit 5a29204
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/patch-template-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ function emberVersionGte(templateCompilerPath: string, source: string, major: nu
}

export function patch(source: string, templateCompilerPath: string): string {
if (emberVersionGte(templateCompilerPath, source, 3, 27)) {
// no modifications are needed after https://github.com/emberjs/ember.js/pull/19426
if (emberVersionGte(templateCompilerPath, source, 3, 26)) {
// no modifications are needed after
// https://github.com/emberjs/ember.js/pull/19426 and backported to 3.26 in
// https://github.com/emberjs/ember.js/commit/9121bcfa4f5ab3d2b49fc0a46a65aa62646b2b10
return source;
}

Expand Down

0 comments on commit 5a29204

Please sign in to comment.