From 9d5f5ea617dbc71b45c6dcb83ff2f56001410b4a Mon Sep 17 00:00:00 2001 From: Mater Date: Thu, 18 Jul 2024 13:14:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9E=84=E5=BB=BA,miniprogram=E6=9C=AA=E5=8F=82=E4=B8=8E?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=20(#91)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复插件构建,miniprogram未参与构建 * fix: import merge --- packages/vue-cli-plugin-mpx/config/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vue-cli-plugin-mpx/config/index.js b/packages/vue-cli-plugin-mpx/config/index.js index eb4641d..58006a1 100644 --- a/packages/vue-cli-plugin-mpx/config/index.js +++ b/packages/vue-cli-plugin-mpx/config/index.js @@ -1,3 +1,4 @@ +const { merge } = require('webpack-merge') const { resolveBaseRawWebpackConfig } = require('./base') const { resolvePluginWebpackConfig } = require('./plugin') @@ -16,7 +17,7 @@ function addRawConfigBeforeUserConfig (api, config) { function addPluginConfig (api, options, target, webpackConfigs) { if (target.mode === 'wx' && api.hasPlugin('mpx-plugin-mode')) { - webpackConfigs.push(resolvePluginWebpackConfig(api, webpackConfigs[0])) + webpackConfigs.push(resolvePluginWebpackConfig(api, merge({}, webpackConfigs[0]))) } }