Moved to require.resolve and added dev notes