Skip to content

Commit b223f69

Browse files
committed
revert initial proposal
1 parent 2a6ba9c commit b223f69

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎lib/webpack.js‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
*/
55
"use strict";
66

7-
const path = require("path");
8-
97
const Compiler = require("./Compiler");
108
const MultiCompiler = require("./MultiCompiler");
119
const NodeEnvironmentPlugin = require("./node/NodeEnvironmentPlugin");
@@ -26,10 +24,6 @@ function webpack(options, callback) {
2624
} else if(typeof options === "object") {
2725
new WebpackOptionsDefaulter().process(options);
2826

29-
if(options.context && !path.isAbsolute(options.context)) {
30-
throw new Error(`option.context (${options.context}) must be an absolute path`);
31-
}
32-
3327
compiler = new Compiler();
3428
compiler.context = options.context;
3529
compiler.options = options;

0 commit comments

Comments
 (0)