How to remove comments from transpiled code using babel-cli
<p>I've been looking around for some <code>.babelrc</code> option to remove comments from the transpiled code, but I haven't had any luck. I tried this:</p>

<pre><code>{
  "comments": false
}
</code></pre>

<p>as well as</p>

<pre><code>{
  "options": {
    "comments": false
  }
}
</code></pre>

<p>and neither works. I'm out of ideas, and I was unable to find any decent documentation anywhere.</p>