@liutsing/babel-plugin-remove-console
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@liutsing/babel-plugin-remove-console

function

remove the console code of source code, and support option to exclude some sub property for production debug, for example: console.debug, console.warn

usge

in babel config file like .babelrc,

{
  "plugins": [
    [
      "@liutsing/babel-plugin-remove-console",
      {
        "exclude": ["debug", "error", "warn"]
      }
    ]
  ]
}

more

Plugin Ordering

Ordering matters for each visitor in the plugin.

This means if two transforms both visit the "Program" node, the transforms will run in either plugin or preset order.

  • Plugins run before Presets.
  • Plugin ordering is first to last.
  • Preset ordering is reversed (last to first).

Readme

Keywords

Package Sidebar

Install

npm i @liutsing/babel-plugin-remove-console

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

8.83 kB

Total Files

9

Last publish

Collaborators

  • liutsing-luo