Add rootContext to webpack types (#29242)

This commit is contained in:
Simon Cousineau
2018-09-27 22:20:50 +01:00
committed by John Reilly
parent 5b0522b4af
commit e85b49361b
+5
View File
@@ -1578,6 +1578,11 @@ declare namespace webpack {
*/
context: string;
/**
* Starting with webpack 4, the formerly `this.options.context` is provided as `this.rootContext`.
*/
rootContext: string;
/**
* The resolved request string.
* In the example: "/abc/loader1.js?xyz!/abc/node_modules/loader2/index.js!/abc/resource.js?rrr"