Currently, I am attempting to include a JavaScript library in a Vue component.
While using CDNs, all JavaScript imports are functioning properly. However, I need an alternative method for production as CDNs cannot be used.
When trying to import the library globally, I noticed that my JavaScript file is being replaced with HTML content. This leads me to believe that there might be an issue with my webpack configuration.
I also attempted to use the require('') method directly in my component, but unfortunately, it was not successful.
Oddly enough, only the app.js file is being imported. I have searched extensively for any config files or webpack settings that may be causing this behavior, but have come up empty-handed.