Expose parseModules() and separate compile methods. It is convenient way to manipulate modules before they are compiled and compile only specific source file.
While parsing, intercept syntax error in the source, print it out and immediately exit.
Do not resolve an id if it starts with slash (assume absolute path) - this will allow to include modules from tmp dirs outside the base directory.
Fix typo.
parseModule() already checks if module has been loaded, do not need to double-check.
Make it possible to override defined modules not only with the path, but also with the object containing full source for the specified module.
Separate id normalization from path resolving.
Collect all files in a single array, before parsing them. Detect if file path is represented by id.
Make sure modules do not contain duplicates, before attempting to compile them.
Add support for overriden modules that do not have physical source files.
Fix typo: test against filePath not global path, when resolving id.
Merge pull request #1 from jayarjo/master

Extend override functionality.