{"name":"babel-plugin-transform-remove-undefined","version":"0.5.0-alpha.85c9b6d8","description":"This removes rvals that are equivalent to undefined wherever possible","keywords":["babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"shinew"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/babel/minify/tree/master/packages/babel-plugin-transform-remove-undefined"},"dependencies":{"babel-helper-evaluate-path":"^0.5.0-alpha.85c9b6d8"},"readmeFilename":"README.md","readme":"# babel-plugin-transform-remove-undefined\n\nFor variable assignments, this removes rvals that evaluate to `undefined`\n(`var`s in functions only).\nFor functions, this removes return arguments that evaluate to `undefined`.\n\n## Example\n\n**In**\n\n```javascript\nlet a = void 0;\nfunction foo() {\n  var b = undefined;\n  return undefined;\n}\n```\n\n**Out**\n\n```javascript\nlet a;\nfunction foo() {\n  var b;\n  return;\n}\n```\n\n## Installation\n\n```sh\nnpm install babel-plugin-transform-remove-undefined --save-dev\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"babel-plugin-transform-remove-undefined\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins babel-plugin-transform-remove-undefined script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"babel-plugin-transform-remove-undefined\"]\n});\n```\n\n## Options\n\n+ `tdz` - Detect usages before declaration/initialization in let/const(throws) and var(void 0)\n","_id":"babel-plugin-transform-remove-undefined@0.5.0-alpha.85c9b6d8","dist":{"shasum":"3921286d529fb1b69bfc77e94a4e89388c22b6ae","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-remove-undefined/download/babel-plugin-transform-remove-undefined-0.5.0-alpha.85c9b6d8.tgz","fileCount":5,"unpackedSize":8393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+v8hCRA9TVsSAnZWagAAwKwP/2pcWHlrKnmF67CSBDFv\nG+csyaayRCYw67jQbuX+/GlwT8FHptz5kNIuhUVw//Y66HB/jmv6dBCXP2te\nV3z8Zz2uAIhCAtFROPvYoedm4RqFgm9gnA9FbdnJ1NzSZeNgmBXmQf5EPF8s\nlApDqdXXaczFpn3SHHyb/AbQPz5zRsFiysfvSkJcKQvgFa09ZxrAkC2IwLuJ\nq1Lgs2ntTOC2ScM3rmO7AMpUOgQXgZwrRuulbNEplUqZld0t/13HTLiywnei\nUvae/x0aIoVGXxcPdprgeel7Gel2eciiVe54EsvgT1gSB2sz4yh7FbW7yoEg\n/r9QQif8C+lmipBddJJhWWw4JTuDl1xx/jLTDmIoXJMIKcNimDJHXRehtNcB\nJDPR5jf9wRQOOjyFXIxh7QK81zNmtWEKix1LRBIdwK8qdyS4QIMXxBiRXRGO\n7yl/zNjES0xdZckKklZYmeZsBIyUylVMR/VLzJbm2iiIOZfvDhc69pXH+kca\noKnvGUE8st+Lu7ghn/UKWKqH7oFjXK5L4NewkbLACsmUXaSZqeSJacvPgpL4\nGLlmWGuH51c8Jf1hWlha1ssigSb4DLba623xMN0WGY64G8awPnM6Mbx97d7I\nUaULBcR3YX1xtJ/T9E+DsDhKj9iKf1a4J8+xES8hnhGubaUhzJp7u1c9+oLA\nOSAa\r\n=nnRQ\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-wJJ2Ra1mecm9cOYV/C/UcPHsLV0BfIFaIhjIeA/ZDPu7gCp79csvy6pelLvLsd4a2VzjoH/8sEVlyvzCXlWX0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8E5Mi+2CgHBSnMF3b4GD13SB8uGQMnuswV+S5dExJJAiBtP11Fr2LAOVwI5ZhZ1267Ae/8YHRS3YdPN3W/mW0Ocg=="}],"size":2474,"noattachment":false,"key":"/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.5.0-alpha.85c9b6d8.tgz"},"maintainers":[{"email":"amjad.masad@gmail.com","name":"amasad"},{"email":"asciiguyfieri@gmail.com","name":"babeljs"},{"email":"me@boopathi.in","name":"boopathi"},{"email":"hi@henryzoo.com","name":"hzoo"},{"email":"kangax@gmail.com","name":"kangax"},{"email":"loganfsmyth@gmail.com","name":"loganfsmyth"},{"email":"vignesh.shanmugam22@gmail.com","name":"vignesh.shanmugam"}],"_npmUser":{"name":"babeljs","email":"asciiguyfieri@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-remove-undefined_0.5.0-alpha.85c9b6d8_1526398753382_0.6491766803613468"},"_hasShrinkwrap":false,"publish_time":1526398753434,"_cnpm_publish_time":1526398753434,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.5.0","prerelease":"0.0.3"}}