From 8de1165f234e63250b91c3a6dcc42bdc506039ec Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 20 Sep 2018 10:37:25 +0200 Subject: [PATCH] prefer existing name over generated one This handles the case when identifiers are renamed twice --- lib/ReplaceSource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ReplaceSource.js b/lib/ReplaceSource.js index 48b14b7..d7a0133 100644 --- a/lib/ReplaceSource.js +++ b/lib/ReplaceSource.js @@ -258,7 +258,7 @@ class ReplaceSource extends Source { mapping.column, mapping.source, replace.value, - replace.name + mapping.name || replace.name )); } }