{"id":19099,"library":"babel-plugin-minify-dead-code","title":"babel-plugin-minify-dead-code","description":"A Babel 6 plugin that removes dead code, such as unreachable branches, unused labels, and constant condition elimination. Version 1.3.2 is the last release and is deprecated. It is part of the babel-minify family but was split into separate plugins: babel-plugin-minify-dead-code-elimination and babel-plugin-minify-guarded-expressions. This plugin is only compatible with Babel 6; for Babel 7, use the replacement plugins. No active development.","status":"deprecated","version":"1.3.2","language":"javascript","source_language":"en","source_url":"https://github.com/NervJS/babel-plugin-remove-dead-code","tags":["javascript","babel-plugin"],"install":[{"cmd":"npm install babel-plugin-minify-dead-code","lang":"bash","label":"npm"},{"cmd":"yarn add babel-plugin-minify-dead-code","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-plugin-minify-dead-code","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CommonJS usage is also common: const plugin = require('babel-plugin-minify-dead-code').","symbol":"default","correct":"import plugin from 'babel-plugin-minify-dead-code'"}],"quickstart":{"code":"// .babelrc\n{\n  \"plugins\": [\"minify-dead-code\"]\n}","lang":"javascript","description":"Add the plugin to Babel 6 configuration to remove dead code."},"warnings":[{"fix":"Replace with npm install babel-plugin-minify-dead-code-elimination babel-plugin-minify-guarded-expressions and update .babelrc.","message":"Package is deprecated; use babel-plugin-minify-dead-code-elimination and babel-plugin-minify-guarded-expressions instead.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Upgrade to Babel 7 and use the replacement plugins.","message":"Incompatible with Babel 7. Requires Babel 6.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install babel-plugin-minify-dead-code --save-dev","cause":"Package not installed or npm install failed.","error":"Error: Cannot find module 'babel-plugin-minify-dead-code'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}