{"name":"babel-preset-vue","version":"2.0.0","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.common.js","unpkg":"dist/babel-preset-vue.js","cdn":"dist/babel-preset-vue.js","scripts":{"test":"echo lol","prepublish":"npm run build","build":"bili index.js --format umd,cjs --compress umd --module-name PresetVue"},"files":["dist"],"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":"^3.5.0"},"devDependencies":{"bili":"^0.17.2"},"gitHead":"aee5e8806e586b91cce3107b7c54fe06aea1f0b0","bugs":{"url":"https://github.com/egoist/babel-preset-vue/issues"},"homepage":"https://github.com/egoist/babel-preset-vue#readme","_id":"babel-preset-vue@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-mu6A9xkq9kDd31eZHrXxGei/3PiSpJZ8FYzVcb2HCl2pwntqbczzyBDAw8iK1vDDpMWppllnatCgyTLe+HSWsw==","shasum":"441f7cf75836a0fa908a5df62bc243f8f9109d2c","tarball":"http://registry-npm.ywwl.com/babel-preset-vue/download/babel-preset-vue-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdMziNrwBX/XfiCLhD4MvblXPjPB7qA6xKhgYXc8ObrAiByj2nXwJ6U/qW8KDzxMMYaUMndh67cs486xMnuMXdFLA=="}],"size":28162,"noattachment":false,"key":"/babel-preset-vue/-/babel-preset-vue-2.0.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"},{"name":"yyx990803","email":"yyx990803@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-preset-vue-2.0.0.tgz_1512570382576_0.7161050892900676"},"directories":{},"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","publish_time":1512570382665,"_cnpm_publish_time":1512570382665,"dist-tags":{"latest":"2.0.2"}}