babel-plugin-jss-simple
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -6,2 +6,5 @@ 'use strict'; | ||
}); | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
/** | ||
@@ -19,3 +22,3 @@ * JSS Simple Babel Plugin | ||
if (node.callee.name === state.name && node.arguments.length === 1) { | ||
path.replaceWith(t.callExpression(t.identifier(state.name), [node.arguments[0], t.binaryExpression('+', t.identifier('__filename'), t.stringLiteral('_' + state.idx++))])); | ||
path.replaceWith(t.callExpression(t.identifier(state.name), [].concat(_toConsumableArray(node.arguments), [t.binaryExpression('+', t.identifier('__filename'), t.stringLiteral('_' + state.idx++))]))); | ||
} | ||
@@ -22,0 +25,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"repository": "git://github.com/ashaffer/babel-plugin-jss-simple.git", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "main": "lib/index.js", |
3530
47