require.resolve - added id argument