title: Remove console.logs using Parcel?
body: <p>Trying to remove <code>console.log</code> statements using Parcel.</p>
  
  <p>Here's <code>package.json</code>:</p>
  
  <pre><code>{
    "dependencies": {
      "jquery": "^3.3.1",
      "select2": "^4.0.6-rc.1"
    },
    "devDependencies": {
      "cssnano": "^4.1.9",
      "parcel-plugin-web-extension": "^1.5.1"
    }
  }
  </code></pre>
  
  <p>The <a href="https://parceljs.org/transforms.html" rel="nofollow noreferrer">Parcel docs on transformations</a> says:</p>
  
  <blockquote>
    <p>Parcel automatically runs these transforms when it finds a configuration file (e.g. .babelrc, .postcssrc) in a module.</p>
  </blockquote>
  
  <p>I've added this <code>.uglifyrc</code> to my project root:</p>
  
  <pre><code>{
    "compress": {
      "pure_funcs": ["console.log"]
    }
  }
  </code></pre>
  
  <p>But when I run <code>parcel build src/index.js</code> none of the console.log statements are removed from the <code>dist/index.js</code>.</p>
  
  <p>Think I'm missing something obvious here.  Thanks!</p>
  
  <p><strong>Edit</strong>: looks like <a href="https://github.com/parcel-bundler/parcel/pull/287" rel="nofollow noreferrer">Parcel supported Uglify</a> at some point and may still, though <a href="https://stackoverflow.com/questions/54680081/remove-console-logs-using-parcel#comment96149088_54680081">per @MTCoster's comment</a> the docs don't indicate that it does.</p>
  
  <p>So I replaced my <code>.uglifyrc</code> file with this <code>.babelrc</code> file and <code>console.log</code> calls are now gone:</p>
  
  <pre><code>{
    "plugins": ["transform-remove-console"]
  }
  </code></pre>