updated approach to deps, mod loading, main entrypoints

This commit is contained in:
Stewart Allen 2022-02-20 12:56:43 -05:00
commit 19522665b2
21 changed files with 299 additions and 321 deletions

View file

@ -2,13 +2,10 @@
"use strict";
(function() {
gapp.register("moto.broker", [], (root, exports) => {
if (gapp.broker) return;
class Broker {
gapp.register('moto.broker');
gapp.broker = new class Broker {
constructor() {
this.topics = {};
this.used = {};
@ -137,4 +134,7 @@ gapp.broker = new class Broker {
}
})();
const { moto } = root;
gapp.broker = moto.broker = new Broker();
});