{"_id":"@budarin/babel-plugin-remove-logger-methods","_rev":"4-029fd9fc9831e1d173ca82dbc26660b0","name":"@budarin/babel-plugin-remove-logger-methods","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.1":{"name":"@budarin/babel-plugin-remove-logger-methods","version":"1.0.1","keywords":["babel","plugin","logger","methods"],"author":{"name":"Vadim Budarin"},"license":"MIT","_id":"@budarin/babel-plugin-remove-logger-methods@1.0.1","maintainers":[{"name":"budarin","email":"budarin-vv@yandex.ru"}],"dist":{"shasum":"dc4a77ebc93678d39b221ae172f7b43d92c43afb","tarball":"https://registry.npmjs.org/@budarin/babel-plugin-remove-logger-methods/-/babel-plugin-remove-logger-methods-1.0.1.tgz","fileCount":7,"integrity":"sha512-Y2G2EytWZ9KUsyg6QfyJ7q0+9s5mvvXCmDNs+dcBUpoaZhxS8/hpFPv51Imse2ZXBQ1arbwvFSlSy6txvsPBSA==","signatures":[{"sig":"MEYCIQClZmRiRCijmqb/PVuHIyq5yOlxk4NXnD713fLxHRZWWwIhAMRnPC0WdbcqaVw1v6olTn5xiJCghE48caDmED8olJ6r","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7347},"main":"./dist/index.js","type":"module","_from":"file:budarin-babel-plugin-remove-logger-methods-1.0.1.tgz","types":"./dist/index.d.ts","scripts":{"build":"tsc","type-check":"tsc --noEmit","pnpm-install":"pnpm install","publish-package":"pnpm build && pnpm publish --access=public","upgrade-dependencies":"pnpm upgrade -i"},"_npmUser":{"name":"budarin","email":"budarin-vv@yandex.ru"},"_resolved":"C:\\Users\\Vadim\\AppData\\Local\\Temp\\05bbb9b00688664310459a539b5b8edb\\budarin-babel-plugin-remove-logger-methods-1.0.1.tgz","_integrity":"sha512-Y2G2EytWZ9KUsyg6QfyJ7q0+9s5mvvXCmDNs+dcBUpoaZhxS8/hpFPv51Imse2ZXBQ1arbwvFSlSy6txvsPBSA==","_npmVersion":"11.6.0","description":"babel plugin to remove logger methods","directories":{},"_nodeVersion":"24.8.0","_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.6.2","typescript":"^5.9.3","@types/babel__core":"^7.20.5","@types/babel__helper-plugin-utils":"^7.10.3"},"peerDependencies":{"@babel/types":"^7.26.0","@babel/helper-plugin-utils":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-remove-logger-methods_1.0.1_1760369504404_0.5817594567400615","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@budarin/babel-plugin-remove-logger-methods","version":"1.0.2","keywords":["babel","plugin","logger","methods"],"author":{"name":"Vadim Budarin"},"license":"MIT","_id":"@budarin/babel-plugin-remove-logger-methods@1.0.2","maintainers":[{"name":"budarin","email":"budarin-vv@yandex.ru"}],"dist":{"shasum":"0c7dee662bbd19073e372ae67870652a506fc181","tarball":"https://registry.npmjs.org/@budarin/babel-plugin-remove-logger-methods/-/babel-plugin-remove-logger-methods-1.0.2.tgz","fileCount":7,"integrity":"sha512-iPM6Vz5Nl9WhyYbfbRpztZjxQZgKizwL3z6tmyvBNak0L6yUhvo6mFY2uOhQZjYMpQG4I1vn0F2okWlICEsjXA==","signatures":[{"sig":"MEUCIHUsLq8ATmWIuoiKEpTkURxxjr3sa8egNOhyV66uiTP0AiEAhy/XXBLmGVdjRF7LhHA09A+rO/Ap+ENUqctCRv8Qghc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7278},"main":"./dist/index.js","type":"module","_from":"file:budarin-babel-plugin-remove-logger-methods-1.0.2.tgz","types":"./dist/index.d.ts","scripts":{"build":"tsc","type-check":"tsc --noEmit","pnpm-install":"pnpm install","publish-package":"pnpm build && pnpm publish --access=public","upgrade-dependencies":"pnpm upgrade -i"},"_npmUser":{"name":"budarin","email":"budarin-vv@yandex.ru"},"_resolved":"C:\\Users\\Vadim\\AppData\\Local\\Temp\\83e10a93d1b620a1bf98a043c8c82d2c\\budarin-babel-plugin-remove-logger-methods-1.0.2.tgz","_integrity":"sha512-iPM6Vz5Nl9WhyYbfbRpztZjxQZgKizwL3z6tmyvBNak0L6yUhvo6mFY2uOhQZjYMpQG4I1vn0F2okWlICEsjXA==","_npmVersion":"11.6.0","description":"babel plugin to remove logger methods","directories":{},"_nodeVersion":"24.8.0","_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.6.2","typescript":"^5.9.3","@types/babel__core":"^7.20.5","@types/babel__helper-plugin-utils":"^7.10.3"},"peerDependencies":{"@babel/types":"^7.26.0","@babel/helper-plugin-utils":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-remove-logger-methods_1.0.2_1760370220928_0.34159872019463733","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@budarin/babel-plugin-remove-logger-methods","version":"1.0.3","keywords":["babel","plugin","logger","methods"],"author":{"name":"Vadim Budarin"},"license":"MIT","_id":"@budarin/babel-plugin-remove-logger-methods@1.0.3","maintainers":[{"name":"budarin","email":"budarin-vv@yandex.ru"}],"dist":{"shasum":"f68c71e4ea7e9424ca3a047aae090f265d3b3acc","tarball":"https://registry.npmjs.org/@budarin/babel-plugin-remove-logger-methods/-/babel-plugin-remove-logger-methods-1.0.3.tgz","fileCount":7,"integrity":"sha512-OWZorYP1GsYRkrsFA/AGzjz8ATFxG9QUF8hVp6S+n3c/BYcPY73VDSskHOg5FrGz0TQaR5NLFi85C3Cx3Exsew==","signatures":[{"sig":"MEQCIGNNfEVoCgyjzhoVt1ea5UgMJ+uYzbsQrBesdQW0VV4YAiAwuvmO9fPPCILuvZn33XjEoITOF2rVDPW2CCteiic73w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7439},"main":"./dist/index.js","type":"module","_from":"file:budarin-babel-plugin-remove-logger-methods-1.0.3.tgz","types":"./dist/index.d.ts","scripts":{"build":"tsc","type-check":"tsc --noEmit","pnpm-install":"pnpm install","publish-package":"pnpm build && pnpm publish --access=public","upgrade-dependencies":"pnpm upgrade -i"},"_npmUser":{"name":"budarin","email":"budarin-vv@yandex.ru"},"_resolved":"C:\\Users\\Vadim\\AppData\\Local\\Temp\\449da443e157fc2f0dc8cfcb553fc6d5\\budarin-babel-plugin-remove-logger-methods-1.0.3.tgz","_integrity":"sha512-OWZorYP1GsYRkrsFA/AGzjz8ATFxG9QUF8hVp6S+n3c/BYcPY73VDSskHOg5FrGz0TQaR5NLFi85C3Cx3Exsew==","_npmVersion":"11.6.0","description":"babel plugin to remove logger methods","directories":{},"_nodeVersion":"24.8.0","_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.6.2","typescript":"^5.9.3","@types/babel__core":"^7.20.5","@types/babel__helper-plugin-utils":"^7.10.3"},"peerDependencies":{"@babel/types":"^7.26.0","@babel/helper-plugin-utils":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-remove-logger-methods_1.0.3_1761220946984_0.014265781680419476","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@budarin/babel-plugin-remove-logger-methods","version":"1.0.4","author":{"name":"Vadim Budarin"},"description":"babel plugin to remove logger methods","main":"./dist/index.js","types":"./dist/index.d.ts","type":"module","keywords":["babel","plugin","logger","methods"],"license":"MIT","devDependencies":{"@babel/types":"^7.28.5","@types/babel__core":"^7.20.5","@types/babel__helper-plugin-utils":"^7.10.3","prettier":"^3.6.2","typescript":"^5.9.3"},"peerDependencies":{"@babel/helper-plugin-utils":"^7.26.0","@babel/types":"^7.26.0"},"scripts":{"build":"tsc","type-check":"tsc --noEmit","pnpm-install":"pnpm install","upgrade-dependencies":"pnpm upgrade -i","publish-package":"pnpm build && pnpm publish --access=public"},"_id":"@budarin/babel-plugin-remove-logger-methods@1.0.4","_integrity":"sha512-G4KU2AS5jOlRWQHvqfPc0r3iuSLjjyfHH5qZW/qidnmPvaFBODbw6efKGqRbCyOUR1xu89VT61zcdnGnZa1A4g==","_resolved":"C:\\Users\\Vadim\\AppData\\Local\\Temp\\1da9e6a1baaa7918ba3907e3fab70e63\\budarin-babel-plugin-remove-logger-methods-1.0.4.tgz","_from":"file:budarin-babel-plugin-remove-logger-methods-1.0.4.tgz","_nodeVersion":"24.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-G4KU2AS5jOlRWQHvqfPc0r3iuSLjjyfHH5qZW/qidnmPvaFBODbw6efKGqRbCyOUR1xu89VT61zcdnGnZa1A4g==","shasum":"bb564f667c597c498de9a56e76cfd5dda9828f99","tarball":"https://registry.npmjs.org/@budarin/babel-plugin-remove-logger-methods/-/babel-plugin-remove-logger-methods-1.0.4.tgz","fileCount":7,"unpackedSize":7668,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAqCb0wOsnIZZZK/p83ftkucgg/o0+kA5irbUZ9OkN6fAiEA2ewvixUvjx7UNSvjJ6uTKrSNwuTfk+8Vw6UNohNzZDU="}]},"_npmUser":{"name":"budarin","email":"budarin-vv@yandex.ru"},"directories":{},"maintainers":[{"name":"budarin","email":"budarin-vv@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/babel-plugin-remove-logger-methods_1.0.4_1761822932572_0.2012729105369404"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-13T15:31:44.219Z","modified":"2025-10-30T11:15:32.962Z","1.0.1":"2025-10-13T15:31:44.584Z","1.0.2":"2025-10-13T15:43:41.131Z","1.0.3":"2025-10-23T12:02:27.241Z","1.0.4":"2025-10-30T11:15:32.768Z"},"author":{"name":"Vadim Budarin"},"license":"MIT","keywords":["babel","plugin","logger","methods"],"description":"babel plugin to remove logger methods","maintainers":[{"name":"budarin","email":"budarin-vv@yandex.ru"}],"readme":"# @budarin/babel-plugin-remove-logger-methods\n\nBabel-плагин для удаления вызовов методов логгера из production-сборки.\n\n## Установка\n\n```bash\nnpm install --save-dev @budarin/babel-plugin-remove-logger-methods\n```\n\nили\n\n```bash\npnpm add -D @budarin/babel-plugin-remove-logger-methods\n```\n\n## Использование\n\n### Базовая настройка\n\nВ `.babelrc` или `babel.config.js`:\n\n```json\n{\n    \"plugins\": [\"@budarin/babel-plugin-remove-logger-methods\"]\n}\n```\n\nПо умолчанию плагин удаляет вызовы методов `debug` и `trace`.\n\n### Только для production\n\n```javascript\n// babel.config.js\nmodule.exports = {\n    plugins: [\n        process.env.NODE_ENV === 'production' && [\n            '@budarin/babel-plugin-remove-logger-methods',\n            { methods: ['debug', 'trace'] },\n        ],\n    ].filter(Boolean),\n};\n```\n\n### Использование в конфигурации Vite\n\n```javascript\n// vite.config.js\nimport removeLoggerMethods from '@budarin/babel-plugin-remove-logger-methods';\n\nexport default defineConfig({\n    plugins: [\n        react({\n            babel: {\n                plugins: [\n                    [\n                        removeLoggerMethods,\n                        { methods: [ 'trace' ] }\n                    ]\n                ],\n            },\n        }),\n\n    ]\n}\n```\n\n## Примеры трансформации\n\n### Входной код\n\n```javascript\nlogger.debug('Debug message');\nlogger.trace('Trace message');\nlogger.info('Info message');\n```\n\n### Выходной код (по умолчанию)\n\n```javascript\nlogger.info('Info message');\n```\n\n## Опции\n\n### `methods`\n\nТип: `string[]`\nПо умолчанию: `['debug', 'trace']`\n\nМассив имён методов, которые нужно удалить.\n\n**Важно:** если передать пустой массив, плагин выдаст ошибку.\n\n## Поддерживаемые конструкции\n\nПлагин удаляет вызовы вида:\n\n- `logger.debug(...)`\n- `this.logger.trace(...)`\n- `obj.logger.debug(...)`\n\n## Лицензия\n\nMIT © Vadim Budarin\n","readmeFilename":"README.md"}