in reply to What's the right way to import a module
The two are not equivalent. See Simple Module Tutorial, use, require, import