DEV: Allow access to ember-computed-decorators under ember-cli (#15945)

This was deprecated in Discourse 2.4, but no end version was put on the deprecation. Many plugins/themes are still using it. This commit restores it under ember-cli so that it does not block the Ember CLI rollout, and can be removed in a future commit.
This commit is contained in:
David Taylor 2022-02-16 11:16:28 +00:00 committed by GitHub
parent 5eaf214594
commit a170c8e708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -7,3 +7,14 @@ define("htmlbars-inline-precompile", ["exports"], function (exports) {
return Ember.Handlebars.compile(strings[0]); return Ember.Handlebars.compile(strings[0]);
}; };
}); });
define("ember-addons/ember-computed-decorators", [
"discourse-common/utils/decorators",
"discourse-common/lib/deprecated",
], function (decorators, deprecated) {
deprecated.default(
"ember-addons/ember-computed-decorators is deprecated. Use discourse-common/utils/decorators instead.",
{ since: "2.4", dropFrom: "3.0" }
);
return decorators;
});