Use require.resolve to resolve mode files
1.1.1