TT
Size: a a a
TT
TT
BT
TT
DK
TS
DK
TT
BT
TS
a
TS
a
a
const f1 = require(‘f1’);
const f2 = require(‘f2’);
const start = async function () {
const a = await f1();
const b = await f2();
return a + b;
}
nst need = require(‘need’);f2.js
const f1 = (el) => el;
export.module = f1;
a
FS
FS
const dep1 = require('dep1');f1.js
const dep2 = require('dep2');
const f1 = require(‘f1’).init(dep1, dep2);
const f2 = require(‘f2’).init(dep1, dep2);
const start = async function () {
const a = await f1();
const b = await f2();
return a + b;
}
function init(dep1, dep2) {f2.js
const f1 = el => el;
return f1;
}
module.exports = {init};
function init(dep1, dep2) {
const f2 = el => el;
return f2;
}
module.exports = {init};
FS
a
a