Project: titanium
Issue TIMOB-23543: TiAPI: require implementation uses incorrect __filename values
Our require implementation uses different values for __filename than what may be expected from an implementation like NodeJS. Additionally, our values differ between platforms. On Windows, we get the base name of the file ('filename'). On iOS and Android we get the filename with no path info ('filename.js'). To match Node, we should be giving the absolute path to the resolved file ('/path/to/filename.js').
Story points: 8