{"_id":"babelrc-rollup","_rev":"2955797","name":"babelrc-rollup","description":"Builds a babel configuration for rollup-plugin-babel by reading .babelrc.","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"eventualbuddha","email":""},{"name":"npm:eventualbuddha","email":""}],"time":{"modified":"2023-04-27T04:02:01.000Z","created":"2016-04-12T16:01:59.394Z","3.0.0":"2016-08-08T23:42:04.353Z","2.0.0":"2016-07-13T01:41:00.651Z","1.2.0":"2016-07-07T00:03:32.695Z","1.1.0":"2016-06-09T12:24:04.023Z","1.0.0":"2016-04-12T16:01:59.394Z"},"users":{},"author":{"name":"Brian Donovan","email":"me@brian-donovan.com"},"repository":{"type":"git","url":"git+https://github.com/eventualbuddha/babelrc-rollup.git"},"versions":{"3.0.0":{"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","pretest":"npm run flow && npm run bootstrap","test":"mocha","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.11.4","babel-plugin-external-helpers":"^6.8.0","babel-plugin-syntax-flow":"^6.13.0","babel-plugin-syntax-object-rest-spread":"^6.13.0","babel-plugin-transform-es2015-parameters":"^6.11.4","babel-plugin-transform-flow-strip-types":"^6.8.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-preset-es2015":"^6.13.2","flow-bin":"^0.30.0","mocha":"^3.0.2","reify":"^0.3.6","rollup":"^0.34.7","rollup-plugin-babel":"^2.6.1","semantic-release":"^4.3.5"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"dependencies":{"resolve":"^1.1.7"},"version":"3.0.0","gitHead":"5cfa3be875cd7cdd2c8250e331136ea5f6e3a034","_id":"babelrc-rollup@3.0.0","_shasum":"fcecdbe3eb6400cf4e769233c1786a2fafe8b56c","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.3.1","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"fcecdbe3eb6400cf4e769233c1786a2fafe8b56c","size":3902,"noattachment":false,"key":"/babelrc-rollup/-/babelrc-rollup-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babelrc-rollup/download/babelrc-rollup-3.0.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":""},{"name":"npm:eventualbuddha","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/babelrc-rollup-3.0.0.tgz_1470699721836_0.7759381248615682"},"directories":{},"publish_time":1470699724353,"_hasShrinkwrap":false,"_cnpm_publish_time":1470699724353,"_cnpmcore_publish_time":"2021-12-16T19:54:57.350Z"},"2.0.0":{"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","size":2445,"noattachment":false,"key":"/babelrc-rollup/-/babelrc-rollup-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babelrc-rollup/download/babelrc-rollup-2.0.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":""},{"name":"npm:eventualbuddha","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babelrc-rollup-2.0.0.tgz_1468374058028_0.5556905635166913"},"directories":{},"publish_time":1468374060651,"_hasShrinkwrap":false,"_cnpm_publish_time":1468374060651,"_cnpmcore_publish_time":"2021-12-16T19:54:57.548Z"},"1.2.0":{"name":"babelrc-rollup","version":"1.2.0","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"},"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-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"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"8445a1c356084f8c2311d478a9c3116eeeab1a1c","_id":"babelrc-rollup@1.2.0","_shasum":"753f1035f824cd604ae0905d1e216f397ea8ea01","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"753f1035f824cd604ae0905d1e216f397ea8ea01","size":2262,"noattachment":false,"key":"/babelrc-rollup/-/babelrc-rollup-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babelrc-rollup/download/babelrc-rollup-1.2.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":""},{"name":"npm:eventualbuddha","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/babelrc-rollup-1.2.0.tgz_1467849810068_0.3381724830251187"},"directories":{},"publish_time":1467849812695,"_hasShrinkwrap":false,"_cnpm_publish_time":1467849812695,"_cnpmcore_publish_time":"2021-12-16T19:54:57.764Z"},"1.1.0":{"name":"babelrc-rollup","version":"1.1.0","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"},"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.9.0","babel-plugin-syntax-flow":"^6.8.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.26.0","rollup":"^0.29.0","rollup-plugin-babel":"^2.5.1"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"4738c5b836deb0bcbd71b17cc8bc862ce46ce27b","_id":"babelrc-rollup@1.1.0","_shasum":"9a010392f02d9247b24418e1496a53e6885a96e0","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"9a010392f02d9247b24418e1496a53e6885a96e0","size":2257,"noattachment":false,"key":"/babelrc-rollup/-/babelrc-rollup-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babelrc-rollup/download/babelrc-rollup-1.1.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":""},{"name":"npm:eventualbuddha","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/babelrc-rollup-1.1.0.tgz_1465475040564_0.4010435719974339"},"directories":{},"publish_time":1465475044023,"_hasShrinkwrap":false,"_cnpm_publish_time":1465475044023,"_cnpmcore_publish_time":"2021-12-16T19:54:57.977Z"},"1.0.0":{"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","size":2499,"noattachment":false,"key":"/babelrc-rollup/-/babelrc-rollup-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babelrc-rollup/download/babelrc-rollup-1.0.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":""},{"name":"npm:eventualbuddha","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babelrc-rollup-1.0.0.tgz_1460476918925_0.034610312432050705"},"directories":{},"publish_time":1460476919394,"_hasShrinkwrap":false,"_cnpm_publish_time":1460476919394,"_cnpmcore_publish_time":"2021-12-16T19:54:58.193Z"}},"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","_attachments":{},"homepage":"https://github.com/eventualbuddha/babelrc-rollup#readme","bugs":{"url":"https://github.com/eventualbuddha/babelrc-rollup/issues"},"license":"MIT"}