mirror of https://github.com/webpack/webpack.git
Fixed linting issue
This commit is contained in:
parent
894be00b2f
commit
acccd86256
|
@ -93,10 +93,10 @@ module.exports = function(optimist, argv, convertOptions) {
|
|||
options = require(configPath);
|
||||
configFileLoaded = true;
|
||||
}
|
||||
|
||||
|
||||
var isES6DefaultExportedFunc = (typeof options === "object" && typeof options["default"] === "function");
|
||||
if(typeof options === "function" || isES6DefaultExportedFunc) {
|
||||
options = isES6DefaultExportedFunc ? options.default : options;
|
||||
options = isES6DefaultExportedFunc ? options.default : options;
|
||||
options = options(argv.env, argv);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue