Commit Graph

1 Commits (f69822c70e5f02e37f984d5282f675733d2de9c2)

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