babel-plugin-openui5-support
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "babel-plugin-openui5-support", | ||
"description": "Handle support tool loading behavior for UI5", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Christoph Kraemer <chr.kraemer@sap.com>", |
@@ -65,7 +65,7 @@ export default function ({ types: t }) { | ||
const arg2 = args[1]; | ||
if (arg1.type !== 'ArrayExpression' && arg2.type !== 'Identifier') { | ||
if (arg1.type !== 'ArrayExpression' || arg2.type !== 'Identifier') { | ||
return; | ||
} | ||
if (arg1.elements.length !== 1 && arg1.elements[0].type !== 'Literal') { | ||
if (arg1.elements.length !== 1 || arg1.elements[0].type !== 'StringLiteral') { | ||
return; | ||
@@ -72,0 +72,0 @@ } |
14216
16
355