babel-plugin-transform-nothing

Babel transform that does nothing.

Usage no npm install needed!

<script type="module">
  import babelPluginTransformNothing from 'https://cdn.skypack.dev/babel-plugin-transform-nothing';
</script>

README

babel-nothing

A Babel transform that does nothing. An ad hoc solution for conditional plugin lists:

plugins: [
    library ? 'transform-nothing' : 'transform-remove-console'
]

Installation

npm install babel-cli babel-plugin-transform-nothing