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

This commit is contained in:
Robin Ward
2020-05-27 15:19:59 -04:00
parent 0f71d38d3a
commit 9dddbcc00d
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;
});