{"library":"babel-plugin-strip-function-call","type":"library","category":null,"description":"A Babel plugin that removes specific function calls (e.g., console.log) from your production code. Version 1.0.2 is the latest stable release, updated via bug fixes only. It is similar to webpack's strip-loader but tailored for Babel environments. The plugin is minimal, allowing you to specify an array of function call patterns to strip. It does not support computed property patterns (e.g., console[\"log\"]) by design. Best paired with a process.env.NODE_ENV check for conditional stripping in production builds. Active development is low; the plugin is maintained but rarely updated.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","babel","plugin","optimize","production"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-strip-function-call","imports":["module.exports = require('babel-plugin-strip-function-call');","{\n  \"plugins\": [\n    [\"strip-function-call\", { \"strip\": [\"console.log\"] }]\n  ]\n}","{\n  \"env\": {\n    \"production\": {\n      \"plugins\": [\n        [\"strip-function-call\", { \"strip\": [\"console.log\"] }]\n      ]\n    }\n  }\n}"]},{"cmd":"yarn add babel-plugin-strip-function-call","imports":[]},{"cmd":"pnpm add babel-plugin-strip-function-call","imports":[]}],"homepage":null,"github":"https://github.com/azu/babel-plugin-strip-function-call","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-strip-function-call","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-strip-function-call/compatibility"}}