akfun 3.0.7 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -193,7 +193,7 @@ module.exports = (_curEnvConfig, _akfunConfig) => {
|
|
|
193
193
|
// 优先使用执行环境中的配置
|
|
194
194
|
if (curEnvConfig.ignoreNodeModules !== undefined) {
|
|
195
195
|
const allowList = curEnvConfig.allowList || curWebpackConfig.allowList;
|
|
196
|
-
const externals = curEnvConfig.externals ||
|
|
196
|
+
const externals = curEnvConfig.externals || curWebpackConfig.external || [];
|
|
197
197
|
webpackConfig.externals = curEnvConfig.ignoreNodeModules
|
|
198
198
|
? [
|
|
199
199
|
nodeExternals({
|
|
@@ -305,5 +305,11 @@ module.exports = (_curEnvConfig, _akfunConfig) => {
|
|
|
305
305
|
);
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
// 判断是否有自定义plugins
|
|
309
|
+
if (curWebpackConfig.plugins && Array.isArray(curWebpackConfig.plugins)) {
|
|
310
|
+
// 添加自定义webpack插件
|
|
311
|
+
webpackConfig.plugins.concat(curWebpackConfig.plugins);
|
|
312
|
+
}
|
|
313
|
+
|
|
308
314
|
return webpackConfig;
|
|
309
315
|
};
|