-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
38 lines (29 loc) · 1.01 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require("./crossplatform/src/Promise")
exports.Promise= global.Promise
exports.version = require("./package.json").version
global.regeneratorRuntime = require("./crossplatform/src/runtime.js")
global.kwcore= global.kawix= module.exports
// good helpers
global.kwcore.__path= __dirname
global.kwcore.__file = __filename
var op={}
/** Access to object for transpile code */
Object.defineProperty(exports, "NextJavascript", {
get: function () {
return op.NextJavascript ? op.NextJavascript : (op.NextJavascript = require("./NextJavascript"))
}
})
/** Access to object for requiring modules */
Object.defineProperty(exports, "KModule", {
get: function () {
return op.KModule ? op.KModule : (op.KModule = require("./KModule"))
}
})
/** Access to babel transpilator */
Object.defineProperty(exports, "babel", {
get: function () {
return op.babel ? op.babel : (op.babel = require("./crossplatform/async/src/babel.js"))
}
})
// virtual @kawix/core folder
exports.KModule.Module.addVirtualFile("@kawix/core", __dirname)