mirror of
https://github.com/loot/babel-gettext-extractor.git
synced 2026-07-27 14:16:28 -07:00
Revert "Added base directory handling."
This reverts commit 3d5cdcef11.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user