{"_id":"@abusix/babel-preset-vue","_rev":"10-fee716f1ede84aea11361d6fc993fa26","name":"@abusix/babel-preset-vue","dist-tags":{"latest":"2.0.2"},"versions":{"2.0.2":{"name":"@abusix/babel-preset-vue","version":"2.0.2","description":"Babel preset for all Vue plugins.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/egoist/babel-preset-vue.git"},"author":{"name":"EGOIST","email":"0x142857@gmail.com","url":"github.com/egoist"},"engines":{"node":">=4"},"main":"dist/babel-preset-vue.cjs.js","unpkg":"dist/babel-preset-vue.min.js","cdn":"dist/babel-preset-vue.min.js","jsdelivr":"dist/babel-preset-vue.min.js","scripts":{"test":"echo lol","_prepublishOnly":"npm run build","build":"bili index.js --format umd,cjs,umd-min --module-name PresetVue"},"keywords":["babel","vue","jsx","preset"],"dependencies":{"babel-helper-vue-jsx-merge-props":"^2.0.2","babel-plugin-jsx-event-modifiers":"^2.0.2","babel-plugin-jsx-v-model":"^2.0.1","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-vue-jsx":"^4.0.1"},"devDependencies":{"bili":"^3.0.0"},"gitHead":"b31b78f47f4ac39ce4d83aaa7c22b169d9e6010c","bugs":{"url":"https://github.com/egoist/babel-preset-vue/issues"},"homepage":"https://github.com/egoist/babel-preset-vue#readme","_id":"@abusix/babel-preset-vue@2.0.2","_nodeVersion":"10.9.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-s8i5tXQ3WLM6+mhu/4I4nl3Ng7hTl3M+xhzXAlm0VuR7ZFmFnn72wF+tqnYHvWeRRAAbiVzS2i1H0giM/4TNrA==","shasum":"c8dd38fd40b4b18ecfc26772624e780d3de1e32f","tarball":"https://registry.npmjs.org/@abusix/babel-preset-vue/-/babel-preset-vue-2.0.2.tgz","fileCount":4,"unpackedSize":4441,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduC1ZCRA9TVsSAnZWagAAwosP/RJSRsydIRE0s3ge6oIm\nLRO8KvgN0cATeVnqxpyUic2W+6EktGJQtInGkNQuBBod6JViihKu3Cde2ecd\n3E/9jsfi2VSkjB7KtUs2kWDCvFAbJshkw2v72kOb22fGCZ08DISpNh2uJPRw\noCp1jwH/SrlSOFv1feF5yWXYTI8frmrbcRhFchFblC5QXAUHjUJesc9L9xu/\nLZBO42LM1kj4P2TiUESf4Zhvjj5Un43kSgwSIioo7QUNxLLnQ7EgqFjZS+6G\nlAYH8t2mgbBlpZM8LQ97F/yBBw1PngmaUmykUETZ2y51xzjU9KaOi9Wk04d1\n/x3E/KVZX42ZJQ0YygslRYjFMw7CXE8Gk6Fqj0sKrPu8uux0Zohkb/qxiHYy\n/s8uqtuf/NMTPxdIzBXDsYlvL32A14cQ0g+EWt1Ao8pLQRnYDYmfPjU3zsV4\nmiOmc8O5vgqJNslVmLFiiZr5Hp9T22gV2pt2/bH6FVOP8suLJTcpuc27bVYg\n2LieDCbXaYg+0ollcsSZiXM3hm5s73bfJkpRDi4xeOcfju6qscx6FzwHqUfy\nohEPjb1c+nQVOF76D0a1Y6iiZTI9CG7o+pxeZxj1E/X3rnlXSA3KeUjLH2CA\nvdiCv8YFenEh599He+Ij2EJC5SkKDK+vIYk6+/dr0C03SKB2jX0tFAURbrcI\npiZt\r\n=U1Z2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx5/zHkn4mXIrH0YD2dca16kMMU8Mz6BVmkATfCeDASgIgQoJCy3fxD0ucRw8qyaXGrzuxJDuAfheUugcISsIJZik="}]},"maintainers":[{"name":"jupiterrr","email":"hello@carstengriesheimer.de"}],"_npmUser":{"name":"jupiterrr","email":"hello@carstengriesheimer.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-preset-vue_2.0.2_1572351321319_0.5947611042446981"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-29T12:15:21.210Z","2.0.2":"2019-10-29T12:15:21.452Z","modified":"2024-05-08T14:13:37.921Z"},"maintainers":[{"email":"info@abusix.com","name":"abusix-main"},{"email":"social@coderwelsch.com","name":"coderwelsch"},{"email":"rodrigo.delarivera@abusix.com","name":"a-rodelta"},{"email":"alexander.wagner@abusix.com","name":"a2x_at_abusix"},{"email":"fabian.isele@abusix.com","name":"fabianskii"},{"email":"thomas.dissert@abusix.com","name":"thomasdissertabusix"}],"description":"Babel preset for all Vue plugins.","homepage":"https://github.com/egoist/babel-preset-vue#readme","keywords":["babel","vue","jsx","preset"],"repository":{"type":"git","url":"git+https://github.com/egoist/babel-preset-vue.git"},"author":{"name":"EGOIST","email":"0x142857@gmail.com","url":"github.com/egoist"},"bugs":{"url":"https://github.com/egoist/babel-preset-vue/issues"},"license":"MIT","readme":"# babel-preset-vue\n\nBabel preset for all Vue plugins.\n\n## Install\n\n```bash\nnpm install -D babel-preset-vue\n```\n\nCDN: [UNPKG](https://unpkg.com/babel-preset-vue/)\n\n## Usage\n\nIn your `.babelrc`:\n\n```json\n{\n  \"presets\": [\"vue\"]\n}\n```\n\nYou can toggle specific features, by default all features are enabled, e.g.:\n\n```json\n{\n  \"presets\": [\n    [\"vue\", {\n      \"eventModifiers\": false\n    }]\n  ]\n}\n```\n\n\n## JSX Features\n\n> Note that following features are not available for babel v7 currently, you may disable them if necessary.\n\n### Event modifiers\n\nOption name: `eventModifiers`\n\nUses [`babel-plugin-jsx-event-modifier`](https://github.com/nickmessing/babel-plugin-jsx-event-modifiers) for adding event modifiers support.\n\nExample:\n```js\nVue.component('hello-world', {\n  methods: {\n    method () {\n      console.log('clicked')\n    }\n  },\n  render () {\n    return (\n      <div>\n        <a href=\"/\" onClick:prevent={this.method} />\n      </div>\n    )\n  }\n})\n```\n\n### v-model\n\nOptions name: `vModel`\n\nUses [`babel-plugin-jsx-v-model`](https://github.com/nickmessing/babel-plugin-jsx-v-model) for adding `v-model` support.\n\nExample:\n\n```js\nVue.component('hello-world', {\n  data: () => ({\n    text: 'Hello World!'\n  }),\n  render () {\n    return (\n      <div>\n        <input type=\"text\" v-model={this.text} />\n        {this.text}\n      </div>\n    )\n  }\n})\n```\n\n## License\n\nMIT &copy; [EGOIST](https://github.com/egoist)\n","readmeFilename":"README.md"}