title: Babel-node ignores or misbehaves when I add ignore option to babel.config.js
body: <p>am using the command</p>
  
  <pre><code>npx babel-node --ignore=' ' --extensions='.ts,.tsx,.js,.jsx,.es6,.es' test.js
  </code></pre>
  
  <p>to compile the script named <strong>test.js</strong> .</p>
  
  <p><strong>test.js</strong> imports <code>import template from 'lodash-es/template';</code> and I would like it to be compiled too.</p>
  
  <p>Adding <strong>ignore</strong> or <strong>include</strong> or <strong>exclude</strong> options regex at babel.config.js doesn't work.
  How do i add an inline <code>--ignore</code> option (<code>{ ignore: [/node_modules\/(?!lodash-es)/] }</code>) like babel.config.js?
  Why does <code>{ ignore: [/node_modules\/(?!lodash-es)/] }</code>  work with <strong><code>@babel/register</code></strong> and not with <strong><code>babel.config.js</code></strong> ?</p>
  
  <p>Below is test.js:</p>
  
  <pre><code>import fs from 'fs';
  import template from 'lodash-es/template';
  console.log(template);
  
  export default function () {
  
  };
  </code></pre>
  
  <p>package.json:</p>
  
  <pre><code>"@babel/cli": "^7.7.7",
  "@babel/core": "^7.7.7",
  "@babel/node": "^7.8.4",
  </code></pre>
  
  <p>Problem seems to be similar to <a href="https://github.com/facebook/jest/issues/6229" rel="nofollow noreferrer">https://github.com/facebook/jest/issues/6229</a></p>