{"name":"babelrc-rollup","description":"Builds a babel configuration for rollup-plugin-babel by reading .babelrc.","main":"dist/babelrc-rollup.js","jsnext:main":"dist/babelrc-rollup.mjs","scripts":{"flow":"flow check","build":"rollup -c","test":"npm run flow && npm run bootstrap","bootstrap":"./script/bootstrap","prepublish":"npm test","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"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.10.1","babel-plugin-syntax-flow":"^6.8.0","babel-plugin-transform-es2015-parameters":"^6.9.0","babel-plugin-transform-flow-strip-types":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-rollup":"^1.1.1","flow-bin":"^0.28.0","rollup":"^0.33.0","rollup-plugin-babel":"^2.6.1","semantic-release":"^4.3.5"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"dependencies":{"resolve":"^1.1.7"},"version":"2.0.0","gitHead":"8fad7a7e0aff96ccbf6f037e6ed0eb537710384c","_id":"babelrc-rollup@2.0.0","_shasum":"d9692aa748b999ef162f8b8475a8e1b4b447c026","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.3.0","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"d9692aa748b999ef162f8b8475a8e1b4b447c026","tarball":"http://registry-npm.ywwl.com/babelrc-rollup/download/babelrc-rollup-2.0.0.tgz","integrity":"sha512-Q/8OlTNtVIKMvMxsFZrvYJTEZj3QWtJ2aWF556nQ4bsO5NJGYr/6lqDkmqUgxm2NkSv1BnnnyfZZonq2dtf6Kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID7qzkXC106w1vT8/pOcDVojt6cUtv7QMPBuYSOnQ768AiEAq3E5g9xWmUPMcLHQlyeEJRNJkNkPqznCINmfTMNYTLQ="}],"size":2445,"noattachment":false,"key":"/babelrc-rollup/-/babelrc-rollup-2.0.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":"me@brian-donovan.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babelrc-rollup-2.0.0.tgz_1468374058028_0.5556905635166913"},"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":1468374060651,"_cnpm_publish_time":1468374060651,"dist-tags":{"latest":"3.0.0"}}