The name of what you import only matters when you import something using curly braces, since you are importing specific things from that file/package/whatever.
If you don't use curly braces, you are just importing whatever is exported as default from that file/package/whatever and can therefore give it whatever name you want.
For example, something like this means "import specifically x and y from z":
import { x, y } from 'z'
These names, x and y, need to correspond with something exported in z with those names.
Something like this however is just saying "import the default thing from z and give it the alias MyThing":
import MyThing from 'z'
If you want to give a non-default import a name, you'd need to do something like this:
import { x as MyThing } from 'z'
This will import the non-default thing x and give it the alias MyThing.
import my-modal from 'vue-js-modal'thenVue.use(my-modal);import VModal from "vue-js-modal";I don't think what you suggest will work.