title: import custom components package into vue
body: <p>I created a package with some of my vue components which needs to be shared between several apps.</p>
  <p>In this package I wrote this line in composer.json :</p>
  <pre><code> &quot;autoload&quot;: {
          &quot;psr-4&quot;: {
              &quot;SharedApp\\SharedComponents\\&quot;: &quot;src/components&quot;,
          }
      }
  </code></pre>
  <p>in my website, where I load the package, in a vue file, I import the template like this :</p>
  <pre><code>import NodeTree from '../../../vendor/website/shared-models/src/components/NodeTree.vue
  </code></pre>
  <p>It works but, there isn't proper way to do it?
  like this :  <code>import NodeTree from 'SharedApp/SharedComponents/NodeTree.vue'</code>  ?
  what am I missing?<br />
  thanks.</p>