{"name":"babel-preset-vue","version":"1.2.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":"^1.0.2","babel-plugin-jsx-v-model":"^2.0.1","babel-plugin-jsx-vue-functional":"^2.1.0","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-vue-jsx":"^3.5.0"},"devDependencies":{"bili":"^0.17.2"},"gitHead":"c9f3a1ce904db851473edc77b113146ea62d0135","bugs":{"url":"https://github.com/egoist/babel-preset-vue/issues"},"homepage":"https://github.com/egoist/babel-preset-vue#readme","_id":"babel-preset-vue@1.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-vuKsB4QmY1dRiA2ULW2B+CkWrn6iLf/Y9WwNe520DZUIcuMSNr4v+J4xLodd0vMTKKqpiis/x1SK4Fb/Xp2c+w==","shasum":"9c5962866a60a9302483fb14751b810f5fde87ff","tarball":"http://registry-npm.ywwl.com/babel-preset-vue/download/babel-preset-vue-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXSEiSdRnahnCOULtUNaxm2p+leKnhondG9yGomYTE0AIhAMvDXaBtxAjICgORR96KMKYVhsoE23Bcx1b/zUQNH0Un"}],"size":27359,"noattachment":false,"key":"/babel-preset-vue/-/babel-preset-vue-1.2.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-preset-vue-1.2.0.tgz_1503025404825_0.898627832531929"},"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":1503025404926,"_cnpm_publish_time":1503025404926,"dist-tags":{"latest":"2.0.2"}}