diff --git a/types.d.ts b/types.d.ts index 5efae9986..3971d45ef 100644 --- a/types.d.ts +++ b/types.d.ts @@ -4351,6 +4351,16 @@ declare class NodeEnvironmentPlugin { * Options object for node compatibility features. */ declare interface NodeOptions { + /** + * Include a polyfill for the '__dirname' variable. + */ + __dirname?: boolean | "mock"; + + /** + * Include a polyfill for the '__filename' variable. + */ + __filename?: boolean | "mock"; + /** * Include a polyfill for the 'global' variable. */