creationix/luvit — Issue #14: Fix require to load relative modules relative to the file that requires them
Author: creationix
Created: 2011-10-18 19:48:56+00:00
State: open

This is a hard, but important one. I need require to load modules relative to the file that requires them, not the cwd as it does now. This will probably require monkey patching require a bit. Also optionally we can have something like node_modules (but just call it modules) and use that search path for non-relative requires.

The Lua default require system is messed up and there is constant fighting on the lua list about what's right. We will just do what's right for our ecosystem and not worry about anything else.