The splitStrings option now correctly splits strings inside objects

This commit is contained in:
sanex3339
2019-12-29 13:29:08 +03:00
parent 8a0b182161
commit 3ba3fff62c
10 changed files with 24 additions and 19 deletions
@@ -85,7 +85,7 @@ export class SplitStringTransformer extends AbstractNodeTransformer {
return literalNode;
}
if (NodeGuards.isPropertyNode(parentNode) && !parentNode.computed) {
if (NodeGuards.isPropertyNode(parentNode) && !parentNode.computed && parentNode.key === literalNode) {
return literalNode;
}