I am using Browserify to require a JS file, like this require('./typescript/build/crossing-puzzle-setup'
. However, considering there will be many different types of puzzles, I was wondering, is it possible to "unrequire" a module if I no longer need it?
It makes little sense to unload a module, as the code only takes a very small amount of RAM, and no it is not possible to unload it as the engine cannot predict that require("some module")
doesnt get called again, so it cannot unload the stored data of that module.