Commit Graph

1 Commits (4fa13152af92dd862f8f4b9ae0c207a9134e2ca5)

Author SHA1 Message Date
koichik d6ec8f668e Fix -e/--eval can't load module from node_modules
With -e or --eval, require() can load module using relative path.

    node -e 'require("./foo")'

But it can't load module from node_modules directory.

    node -e 'require("foo")'

Fixes #1196.
2011-06-20 13:47:27 +02:00