title: How to resolve alias in Parceljs?
body: <p>I'm migrating from Webpack to Parcel and I use folder aliases like this in my component:</p>
  
  <pre><code>import * as authActions from 'actions/authActions';
  </code></pre>
  
  <p>I get this error: <code>Cannot find module 'actions/authActions'</code></p>
  
  <p>The weird thing is, it only shows when using <code>build</code>, it works in development mode but not in production.</p>
  
  <p>I've set up my aliases in package.json like <a href="https://parceljs.org/module_resolution.html#aliases" rel="noreferrer">the docs</a> say:</p>
  
  <pre><code>{
    "scripts: {
        "build-client": "parcel build client/index.html dist/client",
        "build-server": "parcel build server/index.js --target node -d dist/server",
        "build-test": "yarn build-server &amp;&amp; node ./dist/server/index.js"
    },
    "alias": {
        "actions": "./client/actions"
    }
  }
  </code></pre>
  
  <p>It's a server-side rendered app, I'm importing the component in different places and I can't use the default Parcel root, because it's relative to the entry file.</p>
  
  <p>How can I get this to properly resolve aliases?</p>