title: How to ignore non-js files with babel/register
body: <p>When my Node app includes the routes from my App I want to ignore non-js files e.g.</p>
  
  <pre><code>import './scss/App.scss' // i.e via Router.js -&gt; Routes.js -&gt; App.js
  </code></pre>
  
  <p>At the moment Node is obviously throwing a parse error as it's trying to parse the scss as js. The babel hook currently looks like this:</p>
  
  <pre><code>require('babel/register')({
      stage: 0
  });
  </code></pre>
  
  <p>Any ideas how I can make babel ignore them? Thanks</p>