Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

  • 6.9.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
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 14 May 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