babel-plugin-transform-vue-jsx
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -103,2 +103,3 @@ var esutils = require('esutils') | ||
pushProps() | ||
prop.argument._isSpread = true | ||
objs.push(prop.argument) | ||
@@ -112,3 +113,3 @@ } else { | ||
if (objs[0] && t.isObjectExpression(objs[0])) { | ||
if (!objs[0]._isSpread) { | ||
objs[0] = groupProps(objs[0].properties, t) | ||
@@ -120,7 +121,3 @@ } | ||
attribs = objs[0] | ||
} else { | ||
// looks like we have multiple objects | ||
if (!t.isObjectExpression(objs[0])) { | ||
objs.unshift(t.objectExpression([])) | ||
} | ||
} else if (objs.length) { | ||
// add prop merging helper | ||
@@ -127,0 +124,0 @@ file.addImport('babel-helper-vue-jsx-merge-props', 'default', '_mergeJSXProps') |
{ | ||
"name": "babel-plugin-transform-vue-jsx", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Babel plugin for Vue 2.0 JSX", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"test": "npm run lint && mocha --compilers js:babel-register", | ||
"build": "babel example/example.js -o example/example.build.js" | ||
"build": "cd example && webpack" | ||
}, | ||
@@ -41,2 +41,3 @@ "repository": { | ||
"babel-helper-vue-jsx-merge-props": "^1.0.0", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-syntax-jsx": "^6.8.0", | ||
@@ -49,4 +50,5 @@ "babel-preset-es2015": "^6.9.0", | ||
"mocha": "^2.5.3", | ||
"vue": "^2.0.0-alpha.5" | ||
"vue": "^2.0.0-alpha.5", | ||
"webpack": "^1.13.1" | ||
} | ||
} |
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
8139
12
208