File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,9 @@ class Chunk {
323
323
return this . _modules . has ( module ) ;
324
324
}
325
325
326
+ /**
327
+ * @returns {Module[] }
328
+ */
326
329
getModules ( ) {
327
330
return this . _modules . getFromCache ( getArray ) ;
328
331
}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const Chunk = require("./Chunk");
9
9
class HotUpdateChunk extends Chunk {
10
10
constructor ( ) {
11
11
super ( ) ;
12
+ /** @type {(string|number)[] } */
12
13
this . removedModules = undefined ;
13
14
}
14
15
}
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ class Template {
257
257
var maxId = bounds [ 1 ] ;
258
258
if ( minId !== 0 ) source . add ( "Array(" + minId + ").concat(" ) ;
259
259
source . add ( "[\n" ) ;
260
+ /** @type {Map<string|number, Module> } */
260
261
const modules = new Map ( ) ;
261
262
for ( const module of allModules ) {
262
263
modules . set ( module . id , module ) ;
Original file line number Diff line number Diff line change 5
5
"use strict" ;
6
6
7
7
module . exports = class WebpackError extends Error {
8
+ /**
9
+ * @param {string } message the error message
10
+ */
8
11
constructor ( message ) {
9
12
super ( message ) ;
10
13
You can’t perform that action at this time.
0 commit comments