From 506c01f1cbe72a42715de38213eac8f86ae16334 Mon Sep 17 00:00:00 2001 From: sandydoo Date: Tue, 27 Apr 2021 05:12:37 +0300 Subject: [PATCH] Improve semver check for modules polyfill The polyfill uses the Ember global, which is deprecated in `3.27.0`. This additionally disables the polyfill for the `3.27.0-beta.x` ranges. Fixes #781. --- packages/compat/src/compat-app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compat/src/compat-app.ts b/packages/compat/src/compat-app.ts index a7246cedc..78c2394ee 100644 --- a/packages/compat/src/compat-app.ts +++ b/packages/compat/src/compat-app.ts @@ -361,7 +361,7 @@ class CompatAppAdapter implements AppAdapter { } let emberSource = this.activeAddonChildren().find(a => a.name === 'ember-source')!; - let emberNeedsModulesPolyfill = semver.satisfies(emberSource.version, '<3.27.0', { includePrerelease: true }); + let emberNeedsModulesPolyfill = semver.satisfies(emberSource.version, '<3.27.0-beta.0', { includePrerelease: true }); return { activeAddons,