From d46ddc2b84251dd8c14c883915091043e0103cdd Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 17 Feb 2020 08:59:03 +0100 Subject: [PATCH] disallow function for output.hotUpdateChunkFilename --- declarations/WebpackOptions.d.ts | 2 +- schemas/WebpackOptions.json | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/declarations/WebpackOptions.d.ts b/declarations/WebpackOptions.d.ts index 372d2b2f6cd..d17488e409e 100644 --- a/declarations/WebpackOptions.d.ts +++ b/declarations/WebpackOptions.d.ts @@ -1118,7 +1118,7 @@ export interface OutputOptions { /** * The filename of the Hot Update Chunks. They are inside the output.path directory. */ - hotUpdateChunkFilename?: string | Function; + hotUpdateChunkFilename?: string; /** * The JSONP function used by webpack for async loading of hot update chunks. */ diff --git a/schemas/WebpackOptions.json b/schemas/WebpackOptions.json index 1fd61706d84..6154e778ac7 100644 --- a/schemas/WebpackOptions.json +++ b/schemas/WebpackOptions.json @@ -940,16 +940,8 @@ }, "hotUpdateChunkFilename": { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", - "anyOf": [ - { - "type": "string", - "absolutePath": false - }, - { - "instanceof": "Function", - "tsType": "Function" - } - ] + "type": "string", + "absolutePath": false }, "hotUpdateFunction": { "description": "The JSONP function used by webpack for async loading of hot update chunks.",