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

@@ -42,7 +42,7 @@ export default function ({ types: t }) {
visitor: {
ExportDefaultDeclaration({ node }, state) {
if (isCreateClass(node.declaration)) {
let displayName = state.file.opts.basename;
let displayName = path.basename(state.file.opts.filename, path.extname(state.file.opts.filename));
// ./{module name}/index.js
if (displayName === "index") {