This commit is contained in:
Ivan Kopeykin 2020-06-16 22:09:07 +03:00
parent 9061a5ca94
commit e58c64912b
1 changed files with 10 additions and 0 deletions

10
types.d.ts vendored
View File

@ -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.
*/