pathResolver returns a string, so it will be nice to add it as `function(string): string`