mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-12 12:11:11 -05:00
fix: babel cache should take browserslist into account
This commit is contained in:
@@ -30,8 +30,12 @@ module.exports = (api, options) => {
|
||||
'@babel/core': require('@babel/core/package.json').version,
|
||||
'@vue/babel-preset-app': require('@vue/babel-preset-app').version,
|
||||
'babel-loader': require('babel-loader/package.json').version,
|
||||
modern: !!process.env.VUE_CLI_MODERN_BUILD
|
||||
}, 'babel.config.js'))
|
||||
modern: !!process.env.VUE_CLI_MODERN_BUILD,
|
||||
browserslist: api.service.pkg.browserslist
|
||||
}, [
|
||||
'babel.config.js',
|
||||
'.browserslistrc'
|
||||
]))
|
||||
.end()
|
||||
|
||||
if (useThreads) {
|
||||
|
||||
Reference in New Issue
Block a user