title: External imports in Babel 7 do not get transpiled
body: <p>I'm currently migrating a codebase from Babel 6 to 7. The code is made up of multiple individual projects with their own configs.</p>
  
  <p>The <code>main</code> project imports files from <code>external</code> however the scripts being imported from <code>external</code> by <code>main</code> aren't being transpiled and fails on "Unexpected token import". Scripts located directly in <code>main</code> <em>do</em> transpile correctly.</p>
  
  <p>I'm using the following command within the <code>main</code> project to transpile the scripts:</p>
  
  <pre><code>babel-node ./index.js
  </code></pre>
  
  <p>Another project uses Webpack to do the same thing and handles everything correctly.</p>
  
  <p>This setup also worked fine with Babel 6.</p>
  
  <hr>
  
  <p><code>.babelrc</code> for <code>main</code></p>
  
  <pre><code>{
  "ignore": [
      "node_modules"
  ],
  "presets": [
      ["@babel/preset-env", {
          "targets": {
              "node": "current"
          },
          "useBuiltIns": "entry"
      }]
  ],
  "plugins": [
      [
          "module-resolver", {
              "alias": {
                  "External": "../external"
              }
          }
      ],
      "@babel/plugin-proposal-decorators",
      "@babel/plugin-proposal-object-rest-spread",
      "@babel/plugin-proposal-export-default-from",
      "@babel/plugin-proposal-export-namespace-from",
      "@babel/plugin-proposal-class-properties"
  ]}
  </code></pre>
  
  <hr>
  
  <p><code>.babelrc</code> for <code>external</code></p>
  
  <pre><code>{
  "presets": [
      "@babel/preset-react"
  ],
  "plugins": [
      "@babel/plugin-proposal-class-properties",
      "@babel/plugin-proposal-object-rest-spread",
      "@babel/plugin-transform-runtime"
  ]}
  </code></pre>
  
  <hr>
  
  <p>I've created an example to detail my problem at:</p>
  
  <p><a href="https://gitlab.com/nerdyman/babel-7-external-import-broken" rel="noreferrer">https://gitlab.com/nerdyman/babel-7-external-import-broken</a></p>
  
  <hr>
  
  <p>TL;DR I'm trying to import scripts from outside of a project's root directory but they don't get transpiled by Babel, the scripts from within the project <em>do</em> transpile.</p>