Remove the nonstandard basename option.

This commit is contained in:
Logan Smyth
2017-03-13 14:08:47 -07:00
parent 2642c2c2df
commit 540f9b2ad6
3 changed files with 3 additions and 4 deletions

View File

@@ -98,7 +98,8 @@ export default function ({ types: t }) {
}
});
const moduleNameOrBasename = moduleName ? moduleName.value : this.file.opts.basename;
const moduleNameOrBasename = moduleName ? moduleName.value :
basename(this.file.opts.filename, extname(this.file.opts.filename));
let globalToAssign = t.memberExpression(
t.identifier("global"), t.identifier(t.toIdentifier(moduleNameOrBasename))
);