Skip to content

Commit

Permalink
fix: babel cache should take browserslist into account
Browse files Browse the repository at this point in the history
yyx990803 committed Aug 3, 2018
1 parent 128d9d9 commit 356eef6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/@vue/cli-plugin-babel/index.js
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit 356eef6

Please sign in to comment.