mirror of https://github.com/webpack/webpack.git
revert initial proposal
This commit is contained in:
parent
2a6ba9cc2f
commit
b223f69cb7
|
|
@ -4,8 +4,6 @@
|
|||
*/
|
||||
"use strict";
|
||||
|
||||
const path = require("path");
|
||||
|
||||
const Compiler = require("./Compiler");
|
||||
const MultiCompiler = require("./MultiCompiler");
|
||||
const NodeEnvironmentPlugin = require("./node/NodeEnvironmentPlugin");
|
||||
|
|
@ -26,10 +24,6 @@ function webpack(options, callback) {
|
|||
} else if(typeof options === "object") {
|
||||
new WebpackOptionsDefaulter().process(options);
|
||||
|
||||
if(options.context && !path.isAbsolute(options.context)) {
|
||||
throw new Error(`option.context (${options.context}) must be an absolute path`);
|
||||
}
|
||||
|
||||
compiler = new Compiler();
|
||||
compiler.context = options.context;
|
||||
compiler.options = options;
|
||||
|
|
|
|||
Loading…
Reference in New Issue