revert initial proposal

This commit is contained in:
Tim Sebastian 2017-02-02 20:15:27 +11:00
parent 2a6ba9cc2f
commit b223f69cb7
1 changed files with 0 additions and 6 deletions

View File

@ -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;