We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f54cbc commit b3bc542Copy full SHA for b3bc542
lib/webpack.js
@@ -15,6 +15,9 @@ function webpack(options, callback) {
15
return webpack(options);
16
}));
17
} else if(typeof options === "object") {
18
+ if(!options.entry && !options.plugins) {
19
+ throw new Error("Passed 'options' object don't look like a valid webpack configuration");
20
+ }
21
new WebpackOptionsDefaulter().process(options);
22
23
compiler = new Compiler();
0 commit comments