From 5a292040c8ff3a14a1b63acc4e0e8db88140fd63 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Tue, 2 Mar 2021 17:18:40 -0500 Subject: [PATCH] Avoid patching the template compiler on Ember 3.26. The fixes that landed on canary (for 3.27) have been backported and released in 3.26.0-beta.x. --- packages/core/src/patch-template-compiler.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/patch-template-compiler.ts b/packages/core/src/patch-template-compiler.ts index 81ba8ba03..733bcedc6 100644 --- a/packages/core/src/patch-template-compiler.ts +++ b/packages/core/src/patch-template-compiler.ts @@ -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; }