I'm currently in the process of developing a reusable navigation component that utilizes vue-router <router-link>
for navigation. The unique aspect of this component is that the navigation elements change styles based on active links.
When I import this component directly, by using the .vue file, it functions properly with synchronized router state and functional links.
However, when I package my components and export them as a library through webpack, the routes no longer work as intended. Despite this issue, all other features of the component such as scripts, events, properties, and styles continue to function correctly.
I'm unsure if this problem stems from my webpack build configuration or if there's a specific property I need to pass in order to connect the application state to my component. Any advice would be greatly appreciated!