mirror of https://github.com/webpack/webpack.git
bugfix for changed API of options defaulter
This commit is contained in:
parent
a2b9983a47
commit
36544088b7
|
|
@ -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 = "/";
|
||||
|
|
|
|||
Loading…
Reference in New Issue