Revert "Revert "DEV: Import MessageBus from message-bus-client instead of globals""

This reverts commit b10e995d9d8cf92adffb810f68bce7c3f75dabf0.
This commit is contained in:
Robin Ward
2020-05-28 08:42:36 -04:00
parent 8a3d9d7036
commit 2033c3ec9c
9 changed files with 21 additions and 12 deletions

View File

@ -0,0 +1,18 @@
// Allow us to import Ember
define("ember", ["exports"], function(__exports__) {
// eslint-disable-next-line no-console
console.warn(
[
"Deprecation notice:",
"Use specific `@ember/*` imports instead of `ember`",
"(deprecated since Discourse 2.4.0)",
"(removal in Discourse 2.5.0)"
].join(" ")
);
__exports__.default = Ember;
});
define("message-bus-client", ["exports"], function(__exports__) {
__exports__.default = window.MessageBus;
});