// const path = require('path') // // function resolveSrc(_path) { // return path.join(__dirname, _path) // } // // const aliases = { // '@src': 'src', // '@router': 'src/router', // '@views': 'src/views', // '@components': 'src/components', // '@assets': 'src/assets', // '@utils': 'src/utils', // '@styles': 'src/styles' // } // // module.exports = { // webpack: {}, // jest: {} // } // // for (const alias in aliases) { // module.exports.webpack[alias] = resolveSrc(aliases[alias]) // module.exports.jest['^' + alias + '/(.*)$'] = // '/' + aliases[alias] + '/$1' // }