I am attempting to create a re-usable navigation component, that uses vue-router <router-link>
to navigate. The specific navigation elements also change styles based on active links.
If I import this component "raw", as in the .vue file, this works fine and the router state is synchronized and the links work.
However if I build my components and export them as a library (using webpack), my routes stop working. All the other features of the component work, scripts, events, properties, styles and such.
Would this be a problem with my webpack build config, or do I need to pass in some type of property that can link together the state of my application to my component?