Revert "Added base directory handling."

This reverts commit 3d5cdcef11.
This commit is contained in:
Stuart Colville
2017-03-16 15:57:34 +00:00
parent ecd85dea45
commit 0c4886d8fa
+1 -6
View File
@@ -2,7 +2,6 @@
var gettextParser = require('gettext-parser');
var fs = require('fs');
var process = require('process');
var DEFAULT_FUNCTION_NAMES = {
gettext: ['msgid'],
@@ -87,11 +86,7 @@ function plugin(babel) {
var headers = gtCfg.headers || DEFAULT_HEADERS;
var base = gtCfg.baseDirectory;
if (base) {
if (base === '.') {
base = process.cwd() + '/';
} else {
base = base.match(/^(.*?)\/*$/)[1] + '/';
}
base = base.match(/^(.*?)\/*$/)[1] + '/';
}
if (fileName !== currentFileName) {