Skip to content

Commit 151c9c8

Browse files
committed
fix extraline, unneeded false type, and spelling in description for class
1 parent 51fe93c commit 151c9c8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/Entrypoint.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
MIT License http://www.opensource.org/licenses/mit-license.php
33
Author Tobias Koppers @sokra
44
*/
5-
/** @typedef {import("./Chunk")} Chunk */
5+
"use strict";
6+
7+
/** @typedef {import("./Chunk.js")} Chunk */
68

79
const ChunkGroup = require("./ChunkGroup");
810
/**
911
*
1012
* @description Entrypoint serves as an encapsulation primitive for chunks that are
11-
* apart of a single ChunkGroup. They represent all bundles that need to be loaded for a
12-
* single instance of a page. Multipage App Architectures will typically yeild multiple Entrypoint Objects
13-
* inside of Compilation, where as a Single Page App, may only contain one with many lazy loaded chunks.
13+
* a part of a single ChunkGroup. They represent all bundles that need to be loaded for a
14+
* single instance of a page. Multi-page application architectures will typically yield multiple Entrypoint objects
15+
* inside of the compilation, whereas a Single Page App may only contain one with many lazy-loaded chunks.
1416
* @class Entrypoint
1517
* @extends {ChunkGroup}
1618
*/
@@ -22,6 +24,7 @@ class Entrypoint extends ChunkGroup {
2224
*/
2325
constructor(name) {
2426
super(name);
27+
/** @type {Chunk=} */
2528
this.runtimeChunk = undefined;
2629
}
2730

@@ -35,7 +38,6 @@ class Entrypoint extends ChunkGroup {
3538
}
3639

3740
/**
38-
*
3941
* @description Sets the runtimeChunk for an entrypoint.
4042
* @param {Chunk} chunk the chunk being set as the runtime chunk.
4143
* @return {void}
@@ -47,7 +49,7 @@ class Entrypoint extends ChunkGroup {
4749

4850
/**
4951
* @description Fetches the chunk reference containing the webpack bootstrap code
50-
* @return {Chunk|false} returns the runtime chunk or false
52+
* @return {Chunk} returns the runtime chunk or first chunk in `this.chunks`
5153
* @memberof Entrypoint
5254
*/
5355
getRuntimeChunk() {

0 commit comments

Comments
 (0)