In a PhantomJS script I would like to load a custom module but it seems relative paths do not works in PhantomJS ?
script.js:
var foo = require(\'./scrip
have you tried to use injectJs(filename)
excerpt form PhantomJS documentation:
Injects external script code from the specified file. If the file can not be found in the current directory, libraryPath is used for additional look up.
This function returns true if injection is successful, otherwise it returns false.