diff --git a/index.js b/index.js index 202ad2f..1fbe86d 100644 --- a/index.js +++ b/index.js @@ -173,6 +173,12 @@ module.exports = function(babel) { if (path.node.callee.type === 'Identifier' && path.node.callee.name === 'L') { + if (t.isStringLiteral(path.node.arguments[0])) + { + // Remember the user-provided string + addString(path, path.node.arguments[0].value); + addImport(path); + } // Skip the first argument arg0.add(path.node.arguments[0]); }