{"_id":"babel-plugin-minify-dead-code-elimination-while-loop-fixed","_rev":"3-3d9cfeadb8f76f2e541ab0edfa19f415","name":"babel-plugin-minify-dead-code-elimination-while-loop-fixed","dist-tags":{"latest":"0.3.1"},"versions":{"0.3.0":{"name":"babel-plugin-minify-dead-code-elimination-while-loop-fixed","version":"0.3.0","description":"* Fork from <https://github.com/babel/minify/tree/0.3.x/packages/babel-plugin-minify-dead-code-elimination> * Fix issue <https://github.com/babel/babel/issues/11343>","keywords":["babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"kingback"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/kingback/babel-plugin-minify-dead-code-elimination-while-loop-fixed.git"},"dependencies":{"babel-helper-evaluate-path":"^0.3.0","babel-helper-mark-eval-scopes":"^0.3.0","babel-helper-remove-or-void":"^0.3.0","lodash.some":"^4.6.0"},"gitHead":"b698745ac56acf7368e098d30714f1d7cb686813","_id":"babel-plugin-minify-dead-code-elimination-while-loop-fixed@0.3.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","_npmUser":{"name":"kingback","email":"ningzbruc@gmail.com"},"dist":{"integrity":"sha512-xBaWVCJ+dVG09Jj+z8tcmekaEaxuzNOLU40wjBwTZ23b4SauA/wmC/XzZQMiis2zVKkLtUYaWUDkGte/sHtS0g==","shasum":"324095ee3f1c932b7cab8ac92967df2310abe716","tarball":"https://registry.npmjs.org/babel-plugin-minify-dead-code-elimination-while-loop-fixed/-/babel-plugin-minify-dead-code-elimination-while-loop-fixed-0.3.0.tgz","fileCount":5,"unpackedSize":49540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeu5QxCRA9TVsSAnZWagAAbIEQAJ8TrFuZYiJnND6Y7r9h\nFW/8LPk8wHzTPV1W7a1iN8Mw9oIlBFWc/VjPJKd1EASAKyIkkgeRw+XRqeE9\nJb1TdvEhJmqlCEHH3hNzR7wdmDLw83zgZsmeCIpBgBYbf1uPHU8iedLsWP6r\nOPemgYLIC3TNQV0OGWdmo981QrcT8K3m/jmhoFyU6Etyv81iYo3AuAdHZBEL\nKLXMZusqxRBuHLF0qxz0mW98Z0ZWJveUiby5DacSbSJ89MMXeLOTtIOt7Zu6\nSBlR3pImAbjEVTAvrF7uR4r9Xer/fsXo8FgPQWpfTJwK6SXzbQQSwgKNdPuy\n17C85Tbbtj3//LgosS/dRUsDeIVo1oxBJKCs7fFqZLHWQ75sMQCZEb2i4Ofw\nHqclH6IpzG6Yy99NiDhfcnQRnuYwn3IudYG1rl2P4GccZjgyVyI4L0g5h7ot\nhVHrePn8gABZT3+rAS6sB/PizeacE2MKb/bivtG4Pv0oyfdaJ5H5cUWNBrMt\nR1Cm3LtlP4z1atO9S+aBuivIWi3lCkvou84mcQ1sxvsDiNBwq3vHWvj6W4od\n8vzuYrCiXd3TJ+SrfEokjBEbcHM1H4r/0sPIFnUVdLg/4UVJDdp5Xo4CerRy\nrYNTfxAKStu02mu/5V3j65RlbaHaasvT59JTkUhlUS1HxfnxwgT83jmblKXL\nirKi\r\n=Z4Tb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJCw8m7uL9lZ2vKfAOwruipRdROxaghr7+s48+C0V0QQIhANak/KeaV0EePTorvw5i+qiIA91zaw8KHIziSQMVfgyq"}]},"maintainers":[{"name":"kingback","email":"ningzbruc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-minify-dead-code-elimination-while-loop-fixed_0.3.0_1589351473182_0.13424705894220756"},"_hasShrinkwrap":false},"0.3.1":{"name":"babel-plugin-minify-dead-code-elimination-while-loop-fixed","version":"0.3.1","description":"* Fork from <https://github.com/babel/minify/tree/0.3.x/packages/babel-plugin-minify-dead-code-elimination> * Fix issue <https://github.com/babel/babel/issues/11343>","keywords":["babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"kingback"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/kingback/babel-plugin-minify-dead-code-elimination-while-loop-fixed.git"},"dependencies":{"babel-helper-evaluate-path":"^0.3.0","babel-helper-mark-eval-scopes":"^0.3.0","babel-helper-remove-or-void":"^0.3.0","lodash.some":"^4.6.0"},"gitHead":"0bebdb19ae6d816aaf9881fee630125dff8b982b","_id":"babel-plugin-minify-dead-code-elimination-while-loop-fixed@0.3.1","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-GRyCBsg9dnL/uy/4JW+r4C7tAeq/0Jdfu/PFQ5N6Frp9hA+hJEJR2fKscj1tPChfpfotWkYreR1zFfwcKYW/zA==","shasum":"cfa664109f59abb669624c20daf81a726a59d90b","tarball":"https://registry.npmjs.org/babel-plugin-minify-dead-code-elimination-while-loop-fixed/-/babel-plugin-minify-dead-code-elimination-while-loop-fixed-0.3.1.tgz","fileCount":6,"unpackedSize":50098,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNzE2QGCSuKE9lYT8TEkhIcHGHKu7yPiUk7IIYEc9uXgIgGOl9JNnX91nLrrl1BSlsnKv0NcLYxI17g7jXhjczZVI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiejXYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmom/w/7Bs/Tepxjv+2r17s6DbiChTgMl900P7fRuKNIGeAfzHBFmoHC\r\n4N8ZK76HwIQtKb/nLQMXHAjLDeqpIoQ64JZlsrD4PFCXjkffLjtxXsbMnyoM\r\nShx9n1JGMo7sj69yDw6vRMdpdji21wpi+RkAswXaycfbLBCXRv8DOwV9n2zJ\r\nzakN62Rw8gDxIhSJGZGyzzVFOMTE79da8NQR/QqKiG99lE/t3R7ANsMtV5UO\r\n/7Brx65OXvq068yCJ27rRkwt3Qlvf80wWmEWW+na3JT1YonZ+RzkDtTGU6k1\r\nzMLtffM/UQon4OAOoi8QfzapgKVeKnUaGmjBhG2TniLsX5YcvobcEUH3bov+\r\nmzh92EftO+3WpUMTy6LqMBnr9RoTRQqngsW8qgQrTsdSwJar5cdoJzIjr+0L\r\n5AyFQIIEG5o0MZx5uZQ7RgC0RG/T072hDV7pmGMgC7j9YhToMO5A/ZzCz6m+\r\n4vOrT6joCLXXiiYISKYm03k3XX/Wljkec9o4Fl+RD4Z6R0Mqm6AI6xyMyCk6\r\n192ZHUV1s1wqtFXuc8ML5/2gKjF5IaqoKf8EypHAYx28qXcPIvfH9VPr4VKu\r\nfz0uL2YVxyvkeIPX0yqVY9knvEFvVOc5Jsgz2I3dRChpe7s5+aKvJg++WbSr\r\n+hKoy/8XZXiZMFGQLzbw2vOdAQ7nkJY0qwQ=\r\n=oeXZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"kingback","email":"ningzbruc@gmail.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-minify-dead-code-elimination-while-loop-fixed_0.3.1_1652176343842_0.32223249382207353"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-13T06:31:13.182Z","0.3.0":"2020-05-13T06:31:13.460Z","modified":"2022-05-10T09:52:24.112Z","0.3.1":"2022-05-10T09:52:24.041Z"},"maintainers":[{"name":"kingback","email":"ningzbruc@gmail.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"description":"* Fork from <https://github.com/babel/minify/tree/0.3.x/packages/babel-plugin-minify-dead-code-elimination> * Fix issue <https://github.com/babel/babel/issues/11343>","homepage":"https://github.com/babel/minify#readme","keywords":["babel-plugin"],"repository":{"type":"git","url":"git+https://github.com/kingback/babel-plugin-minify-dead-code-elimination-while-loop-fixed.git"},"author":{"name":"kingback"},"bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","readme":"# babel-plugin-minify-dead-code-elimination-while-loop-fixed\n\n* Fork from <https://github.com/babel/minify/tree/0.3.x/packages/babel-plugin-minify-dead-code-elimination>\n* Fix issue <https://github.com/babel/babel/issues/11343>\n\nInlines bindings when possible. Tries to evaluate expressions and prunes unreachable as a result.\n\n## Example\n\n**In**\n\n```javascript\nfunction foo() {var x = 1;}\nfunction bar() { var x = f(); }\nfunction baz() {\n  var x = 1;\n  console.log(x);\n  function unused() {\n    return 5;\n  }\n}\n```\n\n**Out**\n\n```javascript\nfunction foo() {}\nfunction bar() { f(); }\nfunction baz() {\n  console.log(1);\n}\n```\n\n## Installation\n\n```sh\nnpm install babel-plugin-minify-dead-code-elimination-while-loop-fixed\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n// without options\n{\n  \"plugins\": [\"minify-dead-code-elimination-while-loop-fixed\"]\n}\n\n// with options\n{\n  \"plugins\": [\"minify-dead-code-elimination-while-loop-fixed\", { \"optimizeRawSize\": true }]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins minify-dead-code-elimination-while-loop-fixed script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"minify-dead-code-elimination-while-loop-fixed\"]\n});\n```\n\n## Options\n\n+ `keepFnName` - prevent plugin from removing function name. Useful for code depending on `fn.name`\n+ `keepFnArgs` - prevent plugin from removing function args. Useful for code depending on `fn.length`\n+ `keepClassName` - prevent plugin from removing class name. Useful for code depending on `cls.name`\n+ `tdz` - Account for TDZ (Temporal Dead Zone)\n","readmeFilename":"README.md"}