babel-plugin-transform-vue-jsx
Advanced tools
Comparing version 3.6.0 to 3.7.0
var esutils = require('esutils') | ||
var groupProps = require('./lib/group-props') | ||
var mustUseProp = require('./lib/must-use-prop') | ||
var addDefault = require('@babel/helper-module-imports').addDefault | ||
@@ -131,3 +130,3 @@ var isInsideJsxExpression = function (t, path) { | ||
if (attribs.length) { | ||
attribs = buildOpeningElementAttributes(attribs, path) | ||
attribs = buildOpeningElementAttributes(attribs, file) | ||
args.push(attribs) | ||
@@ -163,3 +162,3 @@ } | ||
function buildOpeningElementAttributes (attribs, path) { | ||
function buildOpeningElementAttributes (attribs, file) { | ||
var _props = [] | ||
@@ -196,3 +195,3 @@ var objs = [] | ||
// add prop merging helper | ||
var helper = addDefault(path, 'babel-helper-vue-jsx-merge-props', { nameHint: '_mergeJSXProps' }) | ||
var helper = file.addImport('babel-helper-vue-jsx-merge-props', 'default', '_mergeJSXProps') | ||
// spread it | ||
@@ -199,0 +198,0 @@ attribs = t.callExpression( |
{ | ||
"name": "babel-plugin-transform-vue-jsx", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"description": "Babel plugin for Vue 2.0 JSX", | ||
@@ -14,6 +14,6 @@ "main": "index.js", | ||
"lint": "eslint index.js", | ||
"test": "npm run lint && mocha --require @babel/register", | ||
"test": "npm run lint && mocha --compilers js:babel-register", | ||
"dev": "cd example && webpack --watch", | ||
"build": "webpack -d", | ||
"prepublishOnly": "npm run build" | ||
"build": "webpack -p index.js dist/babel-plugin-transform-vue-jsx.min.js --target=web --output-library=babel-plugin-transform-vue-jsx --output-library-target=umd --module-bind 'js=babel-loader'", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -42,9 +42,9 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0-beta.40", | ||
"@babel/helper-module-imports": "^7.0.0-beta.40", | ||
"@babel/preset-env": "^7.0.0-beta.40", | ||
"@babel/register": "^7.0.0-beta.40", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-helper-vue-jsx-merge-props": "^2.0.3", | ||
"babel-loader": "8.0.0-beta.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-syntax-jsx": "^6.18.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.1.2", | ||
@@ -55,4 +55,4 @@ "eslint": "^4.16.0", | ||
"vue": "^2.5.13", | ||
"webpack": "^3.11.0" | ||
"webpack": "^3.10.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
50610
295