Is there a way to use a mixin in multiple components without having to constantly import and declare it? I've tried connecting the mixin object to a global variable using vue.prototype, but mixins are added to components before globals are accessible. Importing the mixin globally means adding it to all components, which is not ideal for me. Any suggestions for a simple solution would be greatly appreciated.
Edit: I'm open to globally importing the mixin but want the option to choose which components use it.
Edit 2: An alternative could be an inline import inside the mixins array, but I haven't found a way to do this with require() or import().
Edit 3: Ultimately, I've decided to stick with using the mixin locally.