{"name":"@vue/babel-sugar-v-on","version":"1.4.0","description":"Babel syntactic sugar for v-model support in Vue JSX","main":"dist/plugin.js","repository":{"type":"git","url":"git+https://github.com/vuejs/jsx.git#master"},"author":{"name":"Nick Messing","email":"dot.nick.dot.messing@gmail.com"},"license":"MIT","private":false,"publishConfig":{"access":"public"},"scripts":{"pretest:snapshot":"yarn build:test","test:snapshot":"nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js","build:dependency":"cd ../babel-plugin-transform-vue-jsx && yarn build","pretest:functional":"yarn build:dependency && yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,../babel-plugin-transform-vue-jsx/dist/plugin.js,@babel/plugin-transform-arrow-functions --out-file test/functional-compiled.js","test:functional":"ava -v test/functional-compiled.js","build":"rollup -c","build:test":"rollup -c rollup.config.testing.js","test":"rm -rf coverage* && yarn test:snapshot && mv coverage coverage-snapshot && yarn test:functional && mv coverage coverage-functional","prepublish":"yarn build"},"devDependencies":{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/plugin-transform-arrow-functions":"^7.12.1","@babel/preset-env":"^7.2.0","@vue/test-utils":"1.0.0-beta.26","ava":"^0.25.0","jsdom":"^13.0.0","jsdom-global":"^3.0.2","ninos":"^2.0.2","nyc":"^13.1.0","rollup":"^0.67.4","rollup-plugin-babel":"4.0.3","rollup-plugin-babel-minify":"^6.2.0","rollup-plugin-istanbul":"^2.0.1","vue":"^2.5.17","vue-template-compiler":"^2.5.17"},"dependencies":{"@babel/plugin-syntax-jsx":"^7.2.0","@vue/babel-plugin-transform-vue-jsx":"^1.4.0","camelcase":"^5.0.0"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"nyc":{"exclude":["dist","test"]},"gitHead":"6566e12067f5d6c02d3849b574a1b84de5634008","bugs":{"url":"https://github.com/vuejs/jsx/issues"},"homepage":"https://github.com/vuejs/jsx/tree/master#readme","_id":"@vue/babel-sugar-v-on@1.4.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/1.9.0/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-m+zud4wKLzSKgQrWwhqRObWzmTuyzl6vOP7024lrpeJM4x2UhQtRDLgYjXAw9xBXjCwS0pP9kXjg91F9ZNo9JA==","shasum":"43b7106a9672d8cbeefc0eb8afe1d376edc6166e","tarball":"http://registry-npm.ywwl.com/@vue/babel-sugar-v-on/download/@vue/babel-sugar-v-on-1.4.0.tgz","fileCount":3,"unpackedSize":7466,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBP1wMUxh4JZsHrhemeushINCVvamR8EE6oh7yTiUUmZAiBIjFA4GXc1trzQnCJ8nBQPKHDa/HY0zB86EPS0ZxpIaA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB2McACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/bRAAhHp5BhiAkxP8dDMfiKxRVzHs4cycUShCRj+QUZmYgeMr2m/M\r\n4JmCN+kIxPrNL4OWac9ayiE4zQq7NNXRUiYedGWYehyomVahSNvFJm+x9mui\r\nMlwP7A6SR1mzjEBkzjRCzHIv/mhfasgsDc9fG9DUOIbwN6h1TMSEF9IROsll\r\nCQNeEOapsMLIhV1pGYOMrVysylS9VomB67h7g+sRX38t+TlPM/BYu7RUVIpe\r\nqu5z1vk+AS8XQ9cxScBHE4CehKCAfJLua4XeJc3lf5UHfXsFccSSVsCFPuiV\r\nCPlRLIUHCBhBYWKnsbHRj6r/BSAUAO38pS3jkbgYxWNmOg92OjMVYxPr7Oxz\r\nQ6FTzSvXPRlmyTHC1U4qqirHNipM+7QF6NC0AUoDiyl4EOk/7hivAsQ8smnY\r\nRSzEgjlHJvRp3pgzCx+kN7V3+BWZMXI1e5LfKxOTGKRwJjUPlnpOQHSdd3x3\r\nWjr+tRPGC3KNEq/GxVzcGb73+F+ZOVV9J+0Raqms+NZ4Gj6a7DSB12Wmn1pR\r\nYZrETcuBeqhmctIjD4eu05l51O3gR0GMNQfeA4Qh05BcrFr3PjCxTEKKStMK\r\ncNs/rbM4S5t+niMWX5EM4Zb/XQ9OZ9ashDQn60mhOuTsSie0DWdjprd1VdKa\r\nt+CzIjQb4SmDiGGRfenqcWyuGI5w5+c4V5s=\r\n=XUGq\r\n-----END PGP SIGNATURE-----\r\n","size":3202,"noattachment":false,"key":"/@vue/babel-sugar-v-on/-/@vue/babel-sugar-v-on-1.4.0.tgz"},"_npmUser":{"name":"soda","email":"haoqunjiang+npm@gmail.com"},"directories":{},"maintainers":[{"name":"nickmessing","email":"dot.nick.dot.messing@gmail.com"},{"name":"soda","email":"haoqunjiang+npm@gmail.com"},{"name":"yyx990803","email":"yyx990803@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-sugar-v-on_1.4.0_1661428507907_0.24826565850010596"},"_hasShrinkwrap":false,"readme":"## @vue/babel-sugar-v-on\n\nSyntactic sugar for v-on in JSX.\n\n### Babel Compatibility Notes\n\n- This repo is only compatible with Babel 7.x, for 6.x please use [vuejs/babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx)\n\n### Usage\n\nInstall the dependencies:\n\n```sh\n# for yarn:\nyarn add @vue/babel-sugar-v-on\n# for npm:\nnpm install @vue/babel-sugar-v-on --save\n```\n\nIn your `.babelrc`:\n\n```json\n{\n  \"plugins\": [\"@vue/babel-sugar-v-on\"]\n}\n```\n\nHowever it is recommended to use the [configurable preset](../babel-preset-jsx/README.md) instead.\n\n### Details\n\nThis plugin adds v-on to the JSX and tries to mirror the same behaviour as in vue-template-compiler, with a few differences:\n\n1.  You should use underscore (`_`) instead of dot (`.`) for modifiers (`vOn:click_prevent={this.test}`)\n2.  It is recommended to use camelCase version of it (`vOn`) in JSX, but you can use kebab-case too (`v-on`).\n\n```js\nexport default {\n  methods: {\n    test() {\n      console.log('Hello World')\n    },\n  },\n  render(h) {\n    return (\n      <div>\n        <a href=\"https://vuejs.org\" vOn:click={this.test}>Vue</a>\n      </div>\n    )\n  },\n}\n```\n","publish_time":1661428508019,"_cnpm_publish_time":1661428508019,"dist-tags":{"latest":"1.4.0"}}