babel-plugin-ko-component-flatten
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -55,2 +55,3 @@ var template = require('babel-template'); | ||
var tpl = null; | ||
var value = null; | ||
@@ -70,5 +71,11 @@ switch (node.key.name) { | ||
if (node.key.name === 'constructor') { | ||
value = t.functionExpression(node.id, node.params, node.body); | ||
} else { | ||
value = node.value; | ||
} | ||
return tpl({ | ||
NAME: node.key, | ||
VALUE: node.value | ||
VALUE: value | ||
}); | ||
@@ -75,0 +82,0 @@ }); |
{ | ||
"name": "babel-plugin-ko-component-flatten", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Flatten ExportDefaultDeclaration", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7235
196