Socket
Socket
Sign inDemoInstall

babel-plugin-transform-remove-debugger

Package Overview
Dependencies
Maintainers
5
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-remove-debugger

Remove debugger statements


Version published
Weekly downloads
368K
increased by0.67%
Maintainers
5
Weekly downloads
 
Created

What is babel-plugin-transform-remove-debugger?

The babel-plugin-transform-remove-debugger npm package is a Babel plugin that removes all debugger statements from your JavaScript code. This is particularly useful for production builds where you want to ensure that no debugging code is left in the final output.

What are babel-plugin-transform-remove-debugger's main functionalities?

Remove debugger statements

This feature removes all debugger statements from the input JavaScript code. In the provided code sample, the debugger statement inside the test function is removed, leaving only the console.log statement.

const code = `function test() { debugger; console.log('test'); }`;
const output = Babel.transform(code, { plugins: ['transform-remove-debugger'] }).code;
console.log(output); // function test() { console.log('test'); }

Other packages similar to babel-plugin-transform-remove-debugger

Keywords

FAQs

Package last updated on 21 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc