mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
60b5800745
commit
59bae95190
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user