Once I have loaded a file using require, is there a clean way to reload the file?
Reloading the file is easy. It's unloading the effects of the previous version that relies on a lot of assumptions and limitations.
But your question is wrong. The problem is your use of require to load something other than a module. You want do.
That said, needing do is a sure sign of a bad design. This is no exception.
In reply to Re: Right way to force the reloading of a file
by ikegami
in thread Right way to force the reloading of a file
by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |