Fix extension changes not being applied to basename.

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-04-07 09:50:09 -07:00
parent 801740056a
commit e783e92029

View File

@ -28,7 +28,7 @@ module.exports = exports = class File {
this.cwd = file.dir;
this.ext = this.preprocessed ? file.ext : normalizedExt(file.ext);
this.name = file.name; // index, fileA, fileB
this.basename = file.base; // index.ext, fileA.ext, fileB.ext
this.basename = this.name + this.ext; // index.ext, fileA.ext, fileB.ext
const dir = this._dir(file.dir);
if (dir) {