mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 11:17:52 +08:00
DEV: Import MessageBus
from message-bus-client
instead of globals
This commit is contained in:
18
app/assets/javascripts/discourse-shims.js
Normal file
18
app/assets/javascripts/discourse-shims.js
Normal 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;
|
||||
});
|
Reference in New Issue
Block a user