diff --git a/packages/vue-cli-plugin-uni/lib/env.js b/packages/vue-cli-plugin-uni/lib/env.js index c6903be4397848f6037c99155cdefb7c0be24222..0888cc42422a3d84a30d7a2d7f86ddbb34d8a13c 100644 --- a/packages/vue-cli-plugin-uni/lib/env.js +++ b/packages/vue-cli-plugin-uni/lib/env.js @@ -70,8 +70,8 @@ process.UNI_STAT_CONFIG = { let usingComponentsAbsent = false if (!platformOptions.hasOwnProperty('usingComponents')) { usingComponentsAbsent = true - platformOptions.usingComponents = true -} +} +platformOptions.usingComponents = true // } if (process.env.UNI_PLATFORM === 'h5') {