{"name":"babel-preset-vue","version":"1.2.1","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-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":"3cb9d26da880704f4fbc0c63d4a03f19b0c8e721","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.1","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-a/Z+6SJ4GXyAoCMfYidDH6OzXnccPNJ5nEaPMjALqCkP9SJkqxz9V0uUS//sGuWszcD8kibdwJRzU+brl8DdFQ==","shasum":"b0de8977e0ce981fc6824cf0a537917a02a6fe87","tarball":"http://registry-npm.ywwl.com/babel-preset-vue/download/babel-preset-vue-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFA13uowrbujpZbA5krAVWLjJR0lWqrbW7/cQe9OhlSCAiEAg3hoYY5P6eaGSwUbSEvByiWwfOKWZuFXLX2PvRIymRE="}],"size":28781,"noattachment":false,"key":"/babel-preset-vue/-/babel-preset-vue-1.2.1.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-1.2.1.tgz_1503285821883_0.40124584920704365"},"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":1503285821998,"_cnpm_publish_time":1503285821998,"dist-tags":{"latest":"2.0.2"}}