From 293f3c98d26c86f60bdba89ec91751607e3cddf3 Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 26 Apr 2019 05:57:32 -0400 Subject: [PATCH] Fix spelling of "Expressions" (#9896) --- .../babel-plugin-transform-template-literals/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-plugin-transform-template-literals/src/index.js b/packages/babel-plugin-transform-template-literals/src/index.js index 9126a64b4569..ba1bc4eae6bd 100644 --- a/packages/babel-plugin-transform-template-literals/src/index.js +++ b/packages/babel-plugin-transform-template-literals/src/index.js @@ -23,7 +23,7 @@ export default declare((api, options) => { * the second member and convert that one, which reflects the spec behavior * of template literals. */ - function buildConcatCallExressions(items) { + function buildConcatCallExpressions(items) { let avail = true; return items.reduce(function(left, right) { let canBeInserted = t.isLiteral(right); @@ -133,7 +133,7 @@ export default declare((api, options) => { root = t.binaryExpression("+", root, nodes[i]); } } else if (nodes.length > 1) { - root = buildConcatCallExressions(nodes); + root = buildConcatCallExpressions(nodes); } path.replaceWith(root);