{"name":"babelrc-rollup","version":"1.0.0","description":"Builds a babel configuration for rollup-plugin-babel by reading .babelrc.","main":"dist/babelrc-rollup.js","jsnext:main":"dist/babelrc-rollup.m.js","scripts":{"flow":"flow check","build":"rollup -c rollup.es.config.js && rollup -c rollup.umd.config.js","test":"npm run flow && npm run bootstrap","bootstrap":"babel src/index.js --no-babelrc --plugins syntax-flow,transform-flow-strip-types,transform-es2015-parameters -o dist/babelrc-rollup.m.js && rollup -c rollup.es.config.js && npm run build","prepublish":"npm test"},"repository":{"type":"git","url":"git+https://github.com/eventualbuddha/babelrc-rollup.git"},"keywords":["babel","rollup"],"files":["dist"],"author":{"name":"Brian Donovan","email":"me@brian-donovan.com"},"license":"MIT","bugs":{"url":"https://github.com/eventualbuddha/babelrc-rollup/issues"},"homepage":"https://github.com/eventualbuddha/babelrc-rollup#readme","devDependencies":{"babel-cli":"^6.7.5","babel-plugin-syntax-flow":"^6.5.0","babel-plugin-transform-flow-strip-types":"^6.7.0","babel-preset-es2015":"^6.6.0","babel-preset-es2015-rollup":"^1.1.1","flow-bin":"^0.22.1","rollup":"^0.25.8","rollup-plugin-babel":"^2.4.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"1c7108ae89052e36893feb3c244e2bf6ce0f4a81","_id":"babelrc-rollup@1.0.0","_shasum":"9d7f4fba28e2ef3019a5d1d59a1d8c814890ccb5","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"9d7f4fba28e2ef3019a5d1d59a1d8c814890ccb5","tarball":"http://registry-npm.ywwl.com/babelrc-rollup/download/babelrc-rollup-1.0.0.tgz","integrity":"sha512-KgUsyudscUw/A25VQC7JB0TFI+rAYH5ubUVI0nlLlCj0Z64zXZfXD6OrYDmbOm5agqu+47SDZwvP0rPxP4Jiaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICXmuQ+R0kNZg4bepIK6IfFbSWe2c8g0pUpxN0Iau78vAiEAs7LFMcfBtqLYv5bO6BnJ6cj5hEDFK8qXamYiVaohW74="}],"size":2499,"noattachment":false,"key":"/babelrc-rollup/-/babelrc-rollup-1.0.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":"me@brian-donovan.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babelrc-rollup-1.0.0.tgz_1460476918925_0.034610312432050705"},"directories":{},"readme":"# babelrc-rollup\n\nBuilds a babel configuration for rollup-plugin-babel by reading .babelrc.\n\n## Install\n\n```\n$ npm install --save-dev babelrc-rollup\n```\n\n## Usage\n\nCreate a `.babelrc` file at the root of your project as normal:\n\n```json\n{\n  \"presets\": [\"es2015\"]\n}\n```\n\nInside your `rollup.config.js`, do this:\n\n```js\nimport babelrc from 'babelrc-rollup';\nimport babel from 'rollup-plugin-babel';\n\nexport default {\n  …\n  plugins: [\n    babel(babelrc())\n  ]\n  …\n};\n```\n\n### Options\n\n#### `path` (default: `'.babelrc'`)\n\nIf you'd like to customize the path of your babelrc file, pass this option with\na string path that can be read using `fs.readFile`.\n\n#### `config`\n\nUse this to avoid reading a babelrc file at all. You could use this to pull the\nconfig from `package.json` instead, for example.\n\n#### `addModuleOptions` (default: `true`)\n\nDisable this option if you do not want the `modules: false` option to be given\nto presets in your babel config. You probably don't want to change this unless\nyou're using `findRollupPresets`.\n\n#### `findRollupPresets` (default: `false`)\n\nEnable this to replace presets with the equivalent rollup-compatible preset, if\navailable. When this option is enabled, babelrc-rollup will try to resolve e.g.\n`es2015-rollup` instead of `es2015`. If no such preset can be found the original\nwill be used.\n\n#### `addExternalHelpersPlugin` (default: `true`)\n\nBy default, babelrc-rollup adds the [`external-helpers` plugin][external-helpers],\nwhich ensures that only one copy of each helper ends up in your bundle. Disable\nthis option to prevent adding this plugin.\n\n\n## A note on babel versions\n\nSince babel [v6.13.0][6-13-0], presets may be given options by using a tuple of\n`[name, opts]`. For example, instead of\n\n```js\n{\n  \"presets\": [\"es2015\"]\n}\n```\n\nYou can do this:\n\n```js\n{\n  \"presets\": [\n    [\"es2015\", { \"modules\": false }]\n  ]\n}\n```\n\nbabelrc-rollup is meant to work with this version of babel or later, but earlier\nversions are supported by using the right options. The old way to configure the\n`es2015` preset for use with rollup was to use the `es2015-rollup` preset\ninstead. To continue doing that, call `babelrc` like so:\n\n```js\nbabelrc({\n  addModuleOptions: false,\n  findRollupPresets: true,\n  addExternalHelpersPlugin: false\n})\n```\n\nIf you use the `es2015` preset, make sure you install `es2015-rollup` too. If\nyou can use babel v6.13.0 or later, you should do so.\n\n[external-helpers]: https://babeljs.io/docs/plugins/external-helpers/\n[6-13-0]: https://github.com/babel/babel/blob/master/CHANGELOG.md#v6130-2016-08-04\n[rollup-config]: https://github.com/eventualbuddha/babelrc-rollup/blob/master/rollup.config.js\n","publish_time":1460476919394,"_cnpm_publish_time":1460476919394,"dist-tags":{"latest":"3.0.0"}}