From c72944d841657d3b6d5b3280c8436e7b9bf444b5 Mon Sep 17 00:00:00 2001 From: qiang Date: Mon, 12 Dec 2022 20:15:12 +0800 Subject: [PATCH] fix: revert plugin-transform-async-to-generator --- template/common/babel.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/template/common/babel.config.js b/template/common/babel.config.js index 663b115..4c1134b 100644 --- a/template/common/babel.config.js +++ b/template/common/babel.config.js @@ -61,8 +61,7 @@ const config = { '@vue/app', { modules: webpack.version[0] > 4 ? 'auto' : 'commonjs', - 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'] + useBuiltIns: process.env.UNI_PLATFORM === 'h5' ? 'usage' : 'entry' } ] ],