DEV: Prepare module-shims for Ember upgrade (#24569)

Replaces console error with comment so that we can defer removing this code while we run modern Ember behind a feature flag
This commit is contained in:
David Taylor 2023-11-27 13:50:09 +00:00 committed by GitHub
parent 60b5800745
commit 59bae95190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,9 +52,8 @@ define("ember-jquery-legacy", ["exports"], function (exports) {
// with native `@cached` support.
const glimmerTracking = require("@glimmer/tracking");
if (glimmerTracking.cached) {
console.error(
"@glimmer/tracking natively supports the @cached decorator. The polyfill can be removed."
);
// No-op. Can be removed once we're fully upgraded to Ember 4+
// Search juice: EMBER_MAJOR_VERSION < 4;
} else {
Object.defineProperty(glimmerTracking, "cached", {
get: () => require("ember-cached-decorator-polyfill").cached,