From 84f69f15bf7ec116ca566cda155198d807ff5a8f Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 10 Jun 2021 14:39:04 +0800 Subject: [PATCH] fix(mp): scopedSlotsCompiler default value --- packages/vue-cli-plugin-uni/lib/env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-cli-plugin-uni/lib/env.js b/packages/vue-cli-plugin-uni/lib/env.js index ce235e803..d90dcafe6 100644 --- a/packages/vue-cli-plugin-uni/lib/env.js +++ b/packages/vue-cli-plugin-uni/lib/env.js @@ -263,7 +263,7 @@ if (platformOptions.usingComponents === true) { // 兼容历史配置 betterScopedSlots const modes = ['legacy', 'auto', 'augmented'] -const scopedSlotsCompiler = platformOptions.scopedSlotsCompiler ? platformOptions.scopedSlotsCompiler : modes[2] +const scopedSlotsCompiler = !platformOptions.scopedSlotsCompiler && platformOptions.betterScopedSlots ? modes[2] : platformOptions.scopedSlotsCompiler process.env.SCOPED_SLOTS_COMPILER = modes.includes(scopedSlotsCompiler) ? scopedSlotsCompiler : modes[1] if ( -- GitLab