rehome loaders as module

This commit is contained in:
Stewart Allen 2021-12-27 10:14:21 -05:00
commit d769111380
20 changed files with 699 additions and 690 deletions

22
src/moto/license.js Normal file
View file

@ -0,0 +1,22 @@
(function() {
let terms = {
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE: "See the license.md file included with the source distribution",
VERSION: "3.1.D10"
};
if (typeof(module) === 'object') {
module.exports = terms;
}
if (typeof(self) !== 'undefined' && self.gapp) {
let app = self.gapp;
app.license = terms.LICENSE;
app.version = terms.VERSION;
app.copyright = terms.COPYRIGHT;
// for earcut and other modules
self.module = { exports: terms };
}
})();