update babel useBuiltIns

This commit is contained in:
fxy060608 2019-07-30 15:01:36 +08:00
parent 4656445949
commit abc0b71d1a
2 changed files with 27 additions and 28 deletions

View File

@ -42,7 +42,7 @@ module.exports = {
'@vue/app',
{
modules: 'commonjs',
useBuiltIns: 'entry'
useBuiltIns: process.env.UNI_PLATFORM === 'h5' ? 'usage' : 'entry'
}
]
],

View File

@ -1,4 +1,3 @@
const pkg = require('./package.json')
module.exports = {
parser: require('postcss-comment'),
plugins: [