File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,25 @@ function loadModulesRollup(code) {
40
40
espruino : {
41
41
job,
42
42
43
+ externals : {
44
+ // for proxy and offline support
45
+ getURL : url => new Promise ( ( resolve , reject ) => {
46
+ Espruino . Core . Utils . getURL ( url , data => data !== undefined ? resolve ( data ) : reject ( null ) ) ;
47
+ } ) ,
48
+ // for project sandbox chrome app
49
+ getModule : moduleName => new Promise ( ( resolve , reject ) => {
50
+ Espruino . callProcessor ( "getModule" ,
51
+ { moduleName, moduleCode :undefined , isMinified :false } ,
52
+ data => data . moduleCode !== undefined ? resolve ( data . moduleCode ) : reject ( null ) ) ;
53
+ } )
54
+ } ,
55
+
43
56
board : board . BOARD ? board : env ,
44
57
mergeModules : job . MODULE_MERGE ,
45
58
minify : minify ? buildEspruinoMinifyOptions ( ) : false ,
46
59
minifyModules
47
60
}
48
- } )
61
+ } ) ;
49
62
}
50
63
51
64
function buildEspruinoMinifyOptions ( ) {
You can’t perform that action at this time.
0 commit comments