I'm researching the https://github.com/rollup/rollup/issues/4260 issue and found that the `resolve` and the `require.resolve` results differ in windows virtual drive ([subst](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/subst)). To reproduce run the following `index.js` script: ``` const resolve = require('resolve'); console.log('require.resolve: ' + require.resolve('./index.js')); console.log('resolve.sync: ' + resolve.sync('./index.js', { basedir: __dirname, preserveSymlinks: false })); resolve('./index.js', { basedir: __dirname, preserveSymlinks: false }, (err, res) => { if (err) console.error(err); else console.log('resolve: ' + res); }); ``` in the following way: ``` > npm install resolve > subst X: . > X: > node index.js ``` Output: ``` require.resolve: X:\index.js resolve.sync: C:\repo\index.js resolve: C:\repo\index.js ``` 