Include Plugin as an Object rather than a String #1629
Just-Hussain
started this conversation in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I've noticed that the only plugin in my nuxt project that get included in the
plugins
array in a string form rather than as an object is this plugin.Its a minor issue, maybe even not, but I've found it annoying to check for plugins as objects and strings, in for example
extendPlugins
.Describe the solution you'd like to see
Include it as an object
Describe alternatives you've considered
My solution was just to check if the item in the plugins array as an object or a string, and proceed on that. This os annoying especially with TypeScript.
Additional context
Here is a screenshot of what i mean, all plugins are object. The only one that is a string is auth.
That's it, great plugin though thanks for the hard work!
Beta Was this translation helpful? Give feedback.
All reactions