{"name":"@vue/babel-sugar-v-on","version":"1.2.3","description":"Babel syntactic sugar for v-model support in Vue JSX","main":"dist/plugin.js","repository":{"type":"git","url":"https://github.com/vuejs/jsx/tree/master/packages/babel-sugar-v-on"},"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","pretest:functional":"yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,./node_modules/@vue/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.2.1","camelcase":"^5.0.0"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"nyc":{"exclude":["dist","test"]},"gitHead":"9305078ede632c52300b1e9cfab6485259e81e57","_id":"@vue/babel-sugar-v-on@1.2.3","_nodeVersion":"14.13.1","_npmVersion":"lerna/3.20.2/node@v14.13.1+x64 (darwin)","_npmUser":{"name":"soda","email":"haoqunjiang+npm@gmail.com"},"dist":{"integrity":"sha512-kt12VJdz/37D3N3eglBywV8GStKNUhNrsxChXIV+o0MwVXORYuhDTHJRKPgLJRb/EY3vM2aRFQdxJBp9CLikjw==","shasum":"342367178586a69f392f04bfba32021d02913ada","tarball":"http://registry-npm.ywwl.com/@vue/babel-sugar-v-on/download/@vue/babel-sugar-v-on-1.2.3.tgz","fileCount":3,"unpackedSize":7381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjqO4CRA9TVsSAnZWagAAaqIP/15KWn/ROsNOd76sK5l8\nHDcYn5jGn2wcozAWoH7eoFQ2iDT/eaV5CtHcREhC6cqEyDLQEx4BFBUvXOuA\nubn46DeeL8EwHXO5I202lv/RKyA2KQuq+3Or210gWEa9n8x3TpLXTSZjHsak\nXYG/Vfj6qA+1ZQrirkI9dxgQLMzbJtFpR+DBbepsudhV1qHG/lSBK+bCVeNh\nzOlBi6U7ku0TfUsHY01Do8q3N4XoP9XJF/7viTwAE/TVrKHIUuQc/9raeIya\n5HOXcQ/UysChm70WxBZYoPkyseAQryoRjgY3vBQJ1cR6xzvZN2w9iNOscODR\nh/taW6oYaE/kUY2+bojxXilQ7sN5LGdejHHMxObku2Hdh9ORr4+19Ryr/uU9\nzVujtaYoJs5sKoPV/fCExKfuvYggjnDkVtGjj/IkZJUo2Kbe2LYh/Rne5oxT\nDSc90SHJlgqFuutPuwi5p4eQd9zSWJIZTq8MPRy4zcFtAUozaWVM9ccqTC4j\n1xy6omPATkYoXKJl4o9qg6RjXxjaspG69a6aO0DCFb5c0OdSWSlDmhTC0UQF\nLPsJHl1V+b6gwtzZ64NRkfetB2JRtFrfzqPetxJM6Am4kgfa/sre3RWJGcBc\nstPrcIOc8ez3jNRs5jy0eVigsEbLjtNRsAx9zQIB5vS/PNoP7GijBJk6+P1v\n8pMQ\r\n=AGYW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOmGmPkn5wj3sO5SnSfs28WMsDRLzVvErR3tUQ4DurwgIhANio2JPLDMdQkDRDJATqoE/1+QMmD7JFiQHgK9xLHS62"}],"size":3184,"noattachment":false,"key":"/@vue/babel-sugar-v-on/-/@vue/babel-sugar-v-on-1.2.3.tgz"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"},{"name":"soda","email":"haoqunjiang+npm@gmail.com"},{"name":"nickmessing","email":"dot.nick.dot.messing@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-sugar-v-on_1.2.3_1603183544456_0.4199210263219961"},"_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":1603183544568,"_cnpm_publish_time":1603183544568,"dist-tags":{"latest":"1.4.0"}}