{"_id":"rollup-plugin-polyfill","_rev":"2856386","name":"rollup-plugin-polyfill","description":"plugin to prepends bundles with a source file or module","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"jrjurman","email":"j.r.jurman@gmail.com"}],"time":{"modified":"2022-09-06T16:45:52.000Z","created":"2018-02-16T02:13:20.740Z","4.0.0":"2022-02-09T14:23:16.999Z","3.0.0":"2019-07-18T09:15:41.582Z","2.0.1":"2018-03-10T15:56:08.251Z","2.0.0":"2018-03-10T15:00:18.800Z","1.0.0":"2018-02-16T02:13:20.740Z"},"users":{},"author":{"name":"Jesse Jurman","email":"j.r.jurman@gmail.com","url":"https://github.com/jrjurman"},"repository":{"type":"git","url":"git+https://github.com/JRJurman/rollup-plugin-polyfill.git"},"versions":{"4.0.0":{"name":"rollup-plugin-polyfill","version":"4.0.0","description":"plugin to prepends bundles with a source file or module","main":"src/index.js","scripts":{"test":"jest","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/JRJurman/rollup-plugin-polyfill.git"},"keywords":["rollup-plugin"],"author":{"name":"Jesse Jurman","email":"j.r.jurman@gmail.com","url":"https://github.com/jrjurman"},"license":"MIT","bugs":{"url":"https://github.com/JRJurman/rollup-plugin-polyfill/issues"},"homepage":"https://github.com/JRJurman/rollup-plugin-polyfill#readme","engines":{"node":">=10.0.0"},"peerDependencies":{"rollup":"^2.67.0"},"devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","jest":"^27.4.7","rollup":"^2.67.0"},"gitHead":"e063376496e0328169001d74e70b19156d3f908c","_id":"rollup-plugin-polyfill@4.0.0","_nodeVersion":"17.3.1","_npmVersion":"8.3.0","dist":{"shasum":"0b9b719dc660aae787473f75f887aa54985a2202","size":2383,"noattachment":false,"key":"/rollup-plugin-polyfill/-/rollup-plugin-polyfill-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-polyfill/download/rollup-plugin-polyfill-4.0.0.tgz"},"_npmUser":{"name":"jrjurman","email":"j.r.jurman@gmail.com"},"directories":{},"maintainers":[{"name":"jrjurman","email":"j.r.jurman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-polyfill_4.0.0_1644416596811_0.7777911187218567"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-09T14:23:47.812Z","publish_time":1644416596999,"_cnpm_publish_time":1644416596999},"3.0.0":{"name":"rollup-plugin-polyfill","version":"3.0.0","description":"plugin to prepends bundles with a source file or module","main":"src/index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/JRJurman/rollup-plugin-polyfill.git"},"keywords":["rollup-plugin"],"author":{"name":"Jesse Jurman","email":"j.r.jurman@gmail.com","url":"https://github.com/jrjurman"},"license":"MIT","bugs":{"url":"https://github.com/JRJurman/rollup-plugin-polyfill/issues"},"homepage":"https://github.com/JRJurman/rollup-plugin-polyfill#readme","dependencies":{"magic-string":"^0.25.3"},"devDependencies":{"jest":"^24.8.0"},"gitHead":"7576801e9e410eaae5ba6ff0c10fde7c24c2d59f","_id":"rollup-plugin-polyfill@3.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.3.0","_npmUser":{"name":"jrjurman","email":"j.r.jurman@gmail.com"},"dist":{"shasum":"9bec2f54cebd349b39ea25338a5cb389e4fa7f91","size":2172,"noattachment":false,"key":"/rollup-plugin-polyfill/-/rollup-plugin-polyfill-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-polyfill/download/rollup-plugin-polyfill-3.0.0.tgz"},"maintainers":[{"name":"jrjurman","email":"j.r.jurman@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-polyfill_3.0.0_1563441341460_0.8314426955438663"},"_hasShrinkwrap":false,"publish_time":1563441341582,"_cnpm_publish_time":1563441341582,"_cnpmcore_publish_time":"2021-12-16T15:54:03.350Z"},"2.0.1":{"name":"rollup-plugin-polyfill","version":"2.0.1","description":"Rollup Plugin to include a polyfill in your bundle. Literally injects a require or import statement in your bundle. This is useful if you only want to include certain logic in some variants of your build (e.g. polyfills for a UMD).","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/JRJurman/rollup-plugin-polyfill.git"},"keywords":[],"author":{"name":"Jesse Jurman","email":"j.r.jurman@gmail.com","url":"https://github.com/jrjurman"},"license":"MIT","bugs":{"url":"https://github.com/JRJurman/rollup-plugin-polyfill/issues"},"homepage":"https://github.com/JRJurman/rollup-plugin-polyfill#readme","dependencies":{"magic-string":"^0.22.4"},"gitHead":"860e5c9b1079750313d18fe6314b47d80e2fe1ca","_id":"rollup-plugin-polyfill@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jrjurman","email":"j.r.jurman@gmail.com"},"dist":{"shasum":"d514a748c8ff1d424473a8545909f19f69ea8f43","size":1692,"noattachment":false,"key":"/rollup-plugin-polyfill/-/rollup-plugin-polyfill-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-polyfill/download/rollup-plugin-polyfill-2.0.1.tgz"},"maintainers":[{"name":"jrjurman","email":"j.r.jurman@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-polyfill_2.0.1_1520697368137_0.29028019267270744"},"_hasShrinkwrap":false,"publish_time":1520697368251,"_cnpm_publish_time":1520697368251,"_cnpmcore_publish_time":"2021-12-16T15:54:03.622Z"},"2.0.0":{"name":"rollup-plugin-polyfill","version":"2.0.0","description":"Rollup Plugin to include a polyfill in your bundle. Literally injects a require or import statement in your bundle, which you can then use `rollup-plugin-node-resolve` to resolve.","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/JRJurman/rollup-plugin-polyfill.git"},"keywords":[],"author":{"name":"Jesse Jurman","email":"j.r.jurman@gmail.com","url":"https://github.com/jrjurman"},"license":"MIT","bugs":{"url":"https://github.com/JRJurman/rollup-plugin-polyfill/issues"},"homepage":"https://github.com/JRJurman/rollup-plugin-polyfill#readme","dependencies":{"magic-string":"^0.22.4"},"gitHead":"abaf70f7e0eb5a50d67145a02b3062c639157979","_id":"rollup-plugin-polyfill@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jrjurman","email":"j.r.jurman@gmail.com"},"dist":{"shasum":"b4ec948fee70d9b15efeb249718d968eb8a05a5a","size":1160,"noattachment":false,"key":"/rollup-plugin-polyfill/-/rollup-plugin-polyfill-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-polyfill/download/rollup-plugin-polyfill-2.0.0.tgz"},"maintainers":[{"name":"jrjurman","email":"j.r.jurman@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-polyfill_2.0.0_1520694018707_0.4581778134968746"},"_hasShrinkwrap":false,"publish_time":1520694018800,"_cnpm_publish_time":1520694018800,"_cnpmcore_publish_time":"2021-12-16T15:54:03.868Z"},"1.0.0":{"name":"rollup-plugin-polyfill","version":"1.0.0","description":"Rollup Plugin to include a polyfill in your bundle. Literally injects a require statement in your bundle, which you can then use `rollup-plugin-node-resolve` to resolve.","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/JRJurman/rollup-plugin-polyfill.git"},"keywords":[],"author":{"name":"Jesse Jurman","email":"j.r.jurman@gmail.com","url":"https://github.com/jrjurman"},"license":"MIT","bugs":{"url":"https://github.com/JRJurman/rollup-plugin-polyfill/issues"},"homepage":"https://github.com/JRJurman/rollup-plugin-polyfill#readme","gitHead":"bdc4935f54136af6de19eca6dad7b76c091847cf","_id":"rollup-plugin-polyfill@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"jrjurman","email":"j.r.jurman@gmail.com"},"dist":{"shasum":"aa2ddfa4ea576cee9be3e8c4c662453c4fe71655","size":969,"noattachment":false,"key":"/rollup-plugin-polyfill/-/rollup-plugin-polyfill-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-polyfill/download/rollup-plugin-polyfill-1.0.0.tgz"},"maintainers":[{"name":"jrjurman","email":"j.r.jurman@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-polyfill_1.0.0_1518747200674_0.08534231631929745"},"_hasShrinkwrap":false,"publish_time":1518747200740,"_cnpm_publish_time":1518747200740,"_cnpmcore_publish_time":"2021-12-16T15:54:04.072Z"}},"readme":"# rollup-plugin-polyfill\nRollup Plugin to include a polyfill in your bundle.\nLiterally injects a require or import statement in the beginning of your entry files.\nThis is useful if you only want to include certain logic in some variants of\nyour build.\n\n## API\n### `polyfill(packages)`\n* `packages` is a list of modules to be resolved in your bundle.\n\n## Usage\nCheck out the example folder to see more configurations\n```javascript\nconst polyfill = require('rollup-plugin-polyfill')\nconst resolve = require('rollup-plugin-node-resolve')\nconst commonjs = require('rollup-plugin-commonjs')\n\nconst plugins = [\n  resolve(),\n  commonjs(),\n  polyfill(['es6-object-assign/auto', './string-reverse.js']),\n]\n\nexport default {\n  input: 'index.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife',\n    name: 'example'\n  },\n  plugins: plugins\n}\n```\n","_attachments":{},"homepage":"https://github.com/JRJurman/rollup-plugin-polyfill#readme","bugs":{"url":"https://github.com/JRJurman/rollup-plugin-polyfill/issues"},"license":"MIT"}