[Vuejs]-Import vanilla javascript in Vue.js

0👍

Depending on what you want to import, you can also do something like this:

import { mapGetters } from 'vuex' 
const Countries = require('../plugins/country')

If the file contains javascript code you want to execute emidietely you can do like with bootstrap.js and just require the file.

require('./bootstrap')

Leave a comment