fix ordering of deep dependencies
This commit is contained in:
parent
a1dc0dea06
commit
2d189790dc
3 changed files with 8 additions and 13 deletions
15
app.js
15
app.js
|
|
@ -69,7 +69,8 @@ function init(mod) {
|
||||||
}
|
}
|
||||||
let deep = find_deps(dep, seen);
|
let deep = find_deps(dep, seen);
|
||||||
if (deep) {
|
if (deep) {
|
||||||
deps.appendAll(deep);
|
// deeper dependencies go first
|
||||||
|
deps = [...deep, ...deps];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -480,23 +481,11 @@ const script = {
|
||||||
mesh : [
|
mesh : [
|
||||||
"main/gapp",
|
"main/gapp",
|
||||||
"moto/license",
|
"moto/license",
|
||||||
"ext/three",
|
|
||||||
"ext/three-bgu",
|
|
||||||
"ext/three-svg",
|
|
||||||
"ext/tween",
|
|
||||||
"ext/fsave",
|
|
||||||
"&main/mesh"
|
"&main/mesh"
|
||||||
],
|
],
|
||||||
mesh_work : [
|
mesh_work : [
|
||||||
"main/gapp",
|
"main/gapp",
|
||||||
"moto/license",
|
"moto/license",
|
||||||
"ext/jszip",
|
|
||||||
"ext/clip2",
|
|
||||||
"ext/earcut",
|
|
||||||
"ext/base64",
|
|
||||||
"ext/three",
|
|
||||||
"add/three",
|
|
||||||
"ext/three-bgu",
|
|
||||||
"&mesh/work"
|
"&mesh/work"
|
||||||
],
|
],
|
||||||
mesh_pool : [
|
mesh_pool : [
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
// start worker pool (disabled for now with *0)
|
// start worker pool (disabled for now with *0)
|
||||||
moto.client.start(`/code/mesh_pool?${gapp.version}`, moto.client.max() * 0);
|
moto.client.start(`/code/mesh_pool?${gapp.version}`, moto.client.max() * 0);
|
||||||
|
|
||||||
|
// dep: ext.three
|
||||||
|
// dep: ext.three-bgu
|
||||||
gapp.finalize("mesh.work", [
|
gapp.finalize("mesh.work", [
|
||||||
"moto.client" // dep: moto.client
|
"moto.client" // dep: moto.client
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
// dep: ext.tween
|
||||||
|
// dep: ext.three
|
||||||
|
// dep: ext.three-bgu
|
||||||
|
// dep: ext.three-svg
|
||||||
gapp.register('moto.space', [
|
gapp.register('moto.space', [
|
||||||
'add.array', // dep: add.array
|
'add.array', // dep: add.array
|
||||||
'moto.orbit' // dep: moto.orbit
|
'moto.orbit' // dep: moto.orbit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue