akfun 1.6.12 → 1.6.13

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akfun",
3
- "version": "1.6.12",
3
+ "version": "1.6.13",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
@@ -153,11 +153,12 @@ module.exports = (_curEnvConfig, _akfunConfig) => {
153
153
  ]
154
154
  };
155
155
  // 优先使用执行环境中的配置
156
- if (curEnvConfig.ignoreNodeModules) {
156
+ if (curEnvConfig.ignoreNodeModules !== undefined) {
157
157
  const allowList = curEnvConfig.allowList || curWebpackConfig.allowList;
158
- webpackConfig.externals = [nodeExternals({
158
+ const externals = curEnvConfig.externals || config.webpack.external || [];
159
+ webpackConfig.externals = curEnvConfig.ignoreNodeModules ? [nodeExternals({
159
160
  allowlist: allowList || [],
160
- })].concat(curEnvConfig.externals || config.webpack.externals);
161
+ })].concat(externals) : externals;
161
162
  }
162
163
  // 集成构建入口相关的配置(优先级更高)
163
164
  if (curEnvConfig.entry) {