mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update app.js
This commit is contained in:
parent
fc7359e73b
commit
ba207bcf3d
13
app.js
13
app.js
|
@ -154,8 +154,7 @@ function require(FN) {
|
|||
}
|
||||
|
||||
// make global function
|
||||
FSO = null;
|
||||
T = "(function(global){var module={exports:{}};return(function(exports,require,module,__filename,__dirname){" + '"use strict";' + T + "\nreturn exports})(module.exports,global.require,module,__filename,__dirname)})(this);\n\n////@ sourceURL=" + FN;
|
||||
T = "(function(global){var module=new ModuleObject();return(function(exports,require,module,__filename,__dirname){" + '"use strict";' + T + "\n\nreturn module.exports})(module.exports,global.require,module,__filename,__dirname)})(this);\n\n////@ sourceURL=" + FN;
|
||||
try {
|
||||
cache[FN] = eval(T);
|
||||
} catch (e) {
|
||||
|
@ -233,6 +232,11 @@ function init_window(name, args, w, h) {
|
|||
}
|
||||
}
|
||||
|
||||
// define module object
|
||||
var ModuleObject = function() {
|
||||
this.exports = {};
|
||||
};
|
||||
|
||||
// ECMAScript 5 compatibility shims for legacy (and modern) JavaScript engines
|
||||
require("app/assets/js/es5-shim-4.5.14.min");
|
||||
require("app/assets/js/es5-sham-4.5.14.min");
|
||||
|
@ -247,10 +251,7 @@ require("app/assets/js/es6-sham-0.35.5.min");
|
|||
// Babel-core browser-polyfill
|
||||
require("app/assets/js/babel-core-browser-polyfill-5.8.38.min");
|
||||
|
||||
// Squel.js SQL query builder
|
||||
var squel = require("app/assets/js/welsonjs-squel-basic-5.13.0");
|
||||
|
||||
// dive into entry
|
||||
// dive into entrypoint
|
||||
function main() {
|
||||
if (typeof(window) === "undefined") {
|
||||
init_console();
|
||||
|
|
Loading…
Reference in New Issue
Block a user