Use `replaceExtensions` option properly.