babel-plugin-styletron
Advanced tools
Comparing version 2.0.1-beta.2 to 2.0.1-beta.3
{ | ||
"name": "babel-plugin-styletron", | ||
"version": "2.0.1-beta.2", | ||
"version": "2.0.1-beta.3", | ||
"description": "A universal stylesheet manager for node.js and browsers", | ||
@@ -5,0 +5,0 @@ "author": "Ryan Tsao <ryan.j.tsao@gmail.com>", |
@@ -7,3 +7,3 @@ module.exports = function ({types: t}) { | ||
path.node.openingElement.attributes.forEach(node => { | ||
if (node.name.name === 'style' && path.scope.hasBinding('styletron')) { | ||
if (node.name && node.name.name === 'style' && path.scope.hasBinding('styletron')) { | ||
node.name.name = 'className'; | ||
@@ -10,0 +10,0 @@ node.value = t.JSXExpressionContainer( |
4100