User:Evad37/sandbox/ModularUserscriptBase.js

!function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){return o(e[i][1][r]||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}({1:[function(require,module,exports){"use strict";var obj,_App=(obj=require("./modules/App"))&&obj.__esModule?obj:{default:obj};Promise.all([mw.loader.using(["mediawiki.util","mediawiki.api","mediawiki.Title"]),$.ready]).then(function{(0,_App.default)})},{"./modules/App":2}],2:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_hello=(obj=require("./hello"))&&obj.__esModule?obj:{default:obj};function _default{var greeting1=(0,_hello.default)("me");console.log("greeting1",greeting1);var greeting2=(0,_hello.default);console.log({greeting2:greeting2});var api=new mw.Api,id=mw.config.get("wgArticleId");api.get({action:"query",pageids:id,prop:["revisions","info"],rvprop:["user","content"],rvlimit:1,rvdir:"newer"}).then(function(response){console.log("response",response)})}exports.default=_default},{"./hello":3}],3:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;function _default(name){return"Hello, "+name||"world"}exports.default=_default},{}]},{},[1]);