bugfix for changed API of options defaulter

This commit is contained in:
Tobias Koppers 2017-09-22 15:03:30 +02:00
parent a2b9983a47
commit 36544088b7
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ const Compiler = require("../lib/Compiler");
describe("Compiler", () => {
function compile(entry, options, callback) {
const noOutputPath = !options.output || !options.output.path;
new WebpackOptionsDefaulter().process(options);
options = new WebpackOptionsDefaulter().process(options);
options.entry = entry;
options.context = path.join(__dirname, "fixtures");
if(noOutputPath) options.output.path = "/";