mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-09 23:33:10 +08:00
fix: disable transform-async for mp
This commit is contained in:
parent
d8e1401e9f
commit
0bfb3621e8
@ -61,7 +61,8 @@ const config = {
|
|||||||
'@vue/app',
|
'@vue/app',
|
||||||
{
|
{
|
||||||
modules: webpack.version[0] > 4 ? 'auto' : 'commonjs',
|
modules: webpack.version[0] > 4 ? 'auto' : 'commonjs',
|
||||||
useBuiltIns: process.env.UNI_PLATFORM === 'h5' ? 'usage' : 'entry'
|
useBuiltIns: process.env.UNI_PLATFORM === 'h5' ? 'usage' : 'entry',
|
||||||
|
exclude: ['h5', 'app-plus'].includes(process.env.UNI_PLATFORM) ? undefined : ['@babel/plugin-transform-async-to-generator', '@babel/plugin-transform-regenerator']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user