Skip to content

Commit

Permalink
Merge pull request #705 from embroider-build/avoid-patching-template-…
Browse files Browse the repository at this point in the history
…compiler-in-3-26

Avoid patching the template compiler on Ember 3.26.
  • Loading branch information
thoov authored Mar 2, 2021
2 parents c095674 + 5a29204 commit 4a3167d
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 4a3167d

Please sign in to comment.