Resolve by module app-root-path
First, add bootstrap code like:
var appRootPath = require('app-root-path');
appRootPath.setPath(appRootPath.resolve('path/to/src/root'));
global.use = appRootPath.require;
And then use global function use
like:
var TodoItem = use('components/todo-item');