Delete Logger class.

This commit is contained in:
Logan Smyth
2017-03-13 14:35:54 -07:00
parent 188fe105c2
commit c1be6a36c4
5 changed files with 32 additions and 84 deletions

View File

@@ -45,9 +45,7 @@ export default function ({ types: t }) {
}
if (!state.fileNameIdentifier) {
const fileName = state.file.log.filename !== "unknown"
? state.file.log.filename
: null;
const fileName = state.file.opts.filename;
const fileNameIdentifier = path.scope.generateUidIdentifier(FILE_NAME_VAR);
path.hub.file.scope.push({ id: fileNameIdentifier, init: t.stringLiteral(fileName) });