Im trying to understand module caching. I've read lots of materials but it's still fuzzy because I can't find a good article that goes to full details and there are some contrary opinions going around the web.
const modules = {
first: require('./modules/first.js'),
second: require('./modules/second.js')
};
// vs
const first = require('./modules/first.js');
const second = require('./modules/second.js');
Does these two have any difference when it comes to caching (both are exported same way)?
via Solo
No comments:
Post a Comment