0👍
If I understand your question correctly, one way you could probably do this is to have the JavaScript extracted out into a helper file like /lib/3JS.js
and then make sure to export it.
Then you could import it into your Vue file and use it there.
Source:stackexchange.com