{"id":21070889,"url":"https://github.com/raxjs/babel-plugin-minify-dead-code-elimination-while-loop-fixed","last_synced_at":"2026-04-26T17:31:38.942Z","repository":{"id":40315529,"uuid":"490635720","full_name":"raxjs/babel-plugin-minify-dead-code-elimination-while-loop-fixed","owner":"raxjs","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-15T16:48:41.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-12-31T04:12:47.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raxjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-10T09:48:53.000Z","updated_at":"2022-05-10T09:51:45.000Z","dependencies_parsed_at":"2022-07-22T08:52:19.031Z","dependency_job_id":null,"html_url":"https://github.com/raxjs/babel-plugin-minify-dead-code-elimination-while-loop-fixed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raxjs/babel-plugin-minify-dead-code-elimination-while-loop-fixed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raxjs%2Fbabel-plugin-minify-dead-code-elimination-while-loop-fixed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raxjs%2Fbabel-plugin-minify-dead-code-elimination-while-loop-fixed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raxjs%2Fbabel-plugin-minify-dead-code-elimination-while-loop-fixed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raxjs%2Fbabel-plugin-minify-dead-code-elimination-while-loop-fixed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raxjs","download_url":"https://codeload.github.com/raxjs/babel-plugin-minify-dead-code-elimination-while-loop-fixed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raxjs%2Fbabel-plugin-minify-dead-code-elimination-while-loop-fixed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32307010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T17:23:19.671Z","status":"ssl_error","status_checked_at":"2026-04-26T17:23:19.195Z","response_time":129,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T18:48:46.788Z","updated_at":"2026-04-26T17:31:38.924Z","avatar_url":"https://github.com/raxjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-minify-dead-code-elimination-while-loop-fixed\n\n* Fork from \u003chttps://github.com/babel/minify/tree/0.3.x/packages/babel-plugin-minify-dead-code-elimination\u003e\n* Fix issue \u003chttps://github.com/babel/babel/issues/11343\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraxjs%2Fbabel-plugin-minify-dead-code-elimination-while-loop-fixed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraxjs%2Fbabel-plugin-minify-dead-code-elimination-while-loop-fixed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraxjs%2Fbabel-plugin-minify-dead-code-elimination-while-loop-fixed/lists"}