Any repercussions to requiring the same file twice in node.js?

node.js

Solution

Absolutely none. Modules are cached the first time they are loaded so the second call is just a no-op.

Problem

Will I run into any problems if I require the same file twice? ``` require('myclass.js'); require('myclass.js'); ```

Original source

Related problems