From e85b49361be944f07bbc00e3a2d367591cf52f0f Mon Sep 17 00:00:00 2001 From: Simon Cousineau Date: Thu, 27 Sep 2018 17:20:50 -0400 Subject: [PATCH] Add rootContext to webpack types (#29242) --- types/webpack/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 06e83f3f10..5e5b04595f 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -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"