1
My project has several modules, if I load them all into one file - modulos.js - am I decreasing the app’s performance? ex:
file that loads modules (modulos.js):
exports.var1 = require("...")
exports.var2 = require("...")
File 1:
modulos = require(modulos.js)
modulos.var1.funcao()
modulos.var2.funcao()
File 2:
modulos = require(modulos.js)
modulos.var1.funcao()