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
|
@@ -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
|
-
|
|
158
|
+
const externals = curEnvConfig.externals || config.webpack.external || [];
|
|
159
|
+
webpackConfig.externals = curEnvConfig.ignoreNodeModules ? [nodeExternals({
|
|
159
160
|
allowlist: allowList || [],
|
|
160
|
-
})].concat(
|
|
161
|
+
})].concat(externals) : externals;
|
|
161
162
|
}
|
|
162
163
|
// 集成构建入口相关的配置(优先级更高)
|
|
163
164
|
if (curEnvConfig.entry) {
|