diff --git a/lib/modules/pipeline/webpackConfigReader.js b/lib/modules/pipeline/webpackConfigReader.js index ce0a1d724..57c69922d 100644 --- a/lib/modules/pipeline/webpackConfigReader.js +++ b/lib/modules/pipeline/webpackConfigReader.js @@ -26,14 +26,7 @@ class WebpackConfigReader { // + array of named config objects // + config object if (typeof config === 'function') { - // if(Promise.resolve(config)){ - // return config(this.webpackConfigName).then(config => { - // callback(null, config); - // }); - // } - config = await config(this.webpackConfigName); - //return callback(null, config); } else if (Array.isArray(config)) { config = config.filter(cfg => cfg.name === this.webpackConfigName); if (!config.length) { @@ -43,7 +36,6 @@ class WebpackConfigReader { console.warn(`detected ${config.length} webpack configs having the name '${this.webpackConfigName}', using the first one`); } config = config[0]; - //return callback(null, config); } callback(null, config); } catch (e) {