Skip to content

Commit

Permalink
fix: 修复插件构建,miniprogram未参与构建 (#91)
Browse files Browse the repository at this point in the history
* fix: 修复插件构建,miniprogram未参与构建

* fix: import merge
  • Loading branch information
mater1996 authored Jul 18, 2024
1 parent 4ccef35 commit 9d5f5ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue-cli-plugin-mpx/config/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { merge } = require('webpack-merge')
const { resolveBaseRawWebpackConfig } = require('./base')
const { resolvePluginWebpackConfig } = require('./plugin')

Expand All @@ -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])))
}
}

Expand Down

0 comments on commit 9d5f5ea

Please sign in to comment.