From 0c4886d8fafe72e7446857504cf759beeede5fc8 Mon Sep 17 00:00:00 2001 From: Stuart Colville Date: Thu, 16 Mar 2017 15:57:34 +0000 Subject: [PATCH] Revert "Added base directory handling." This reverts commit 3d5cdcef11cc7cf72a579d6b2c1763fd41954528. --- index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/index.js b/index.js index c5864ca..9984d34 100644 --- a/index.js +++ b/index.js @@ -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) {