Skip to content

Commit

Permalink
Merge pull request #10393 from webpack/schema/disallow-function-hotch…
Browse files Browse the repository at this point in the history
…unkfilename

disallow function for output.hotUpdateChunkFilename
  • Loading branch information
sokra committed Feb 17, 2020
2 parents 95409bd + d46ddc2 commit 534d78f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion declarations/WebpackOptions.d.ts
Expand Up @@ -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.
*/
Expand Down
12 changes: 2 additions & 10 deletions schemas/WebpackOptions.json
Expand Up @@ -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.",
Expand Down

0 comments on commit 534d78f

Please sign in to comment.