I get that require caches a variable and it is the same for every request. How to make require to create a new object every time?
let Handlebars = require('handlebars'); console.log(Handlebars.count); // 50 Handlebars.count = 0; Handlebars.count = 50;
requireloads a module. A module is part of your program. How can part of a working program change? - Pavel Mayorov