Transforms require module paths that have a prefix referring to the project root. Also works on `require.resolve`.