1515 * limitations under the License.
1616 */
1717
18- const Entrypoint = require ( 'webpack/lib/Entrypoint' )
18+ const Entrypoint = require ( 'webpack/lib/Entrypoint' ) ;
1919
20- function isAsync ( chunk ) {
20+ function isAsync ( chunk ) {
2121 if ( 'canBeInitial' in chunk ) {
2222 return ! chunk . canBeInitial ( ) ;
2323 } else {
2424 return ! chunk . isInitial ( ) ;
2525 }
2626}
2727
28- function getChunkEntryNames ( chunk ) {
29- return Array . from ( new Set ( getNames ( chunk . groupsIterable ) ) )
28+ function getChunkEntryNames ( chunk ) {
29+ return Array . from ( new Set ( getNames ( chunk . groupsIterable ) ) ) ;
3030}
3131
32- function getNames ( groups ) {
33- const names = [ ]
32+ function getNames ( groups ) {
33+ const names = [ ] ;
3434 for ( const group of groups ) {
3535 if ( group instanceof Entrypoint ) {
3636 // entrypoint
3737 if ( group . options . name ) {
38- names . push ( group . options . name )
38+ names . push ( group . options . name ) ;
3939 }
4040 } else {
41- names . push ( ...getNames ( group . parentsIterable ) )
41+ names . push ( ...getNames ( group . parentsIterable ) ) ;
4242 }
4343 }
44- return names
44+ return names ;
4545}
4646
4747function extractChunks ( { compilation, optionsInclude} ) {
@@ -64,15 +64,15 @@ function extractChunks({compilation, optionsInclude}) {
6464
6565 if ( Array . isArray ( includeChunks ) ) {
6666 chunks = chunks . filter ( ( chunk ) => {
67- return chunk . name && includeChunks . includes ( chunk . name )
67+ return chunk . name && includeChunks . includes ( chunk . name ) ;
6868 } ) ;
6969 }
7070
7171 if ( Array . isArray ( includeEntryPoints ) ) {
7272 chunks = chunks . filter ( chunk => {
73- const names = getChunkEntryNames ( chunk )
74- return names . some ( name => includeEntryPoints . includes ( name ) )
75- } )
73+ const names = getChunkEntryNames ( chunk ) ;
74+ return names . some ( name => includeEntryPoints . includes ( name ) ) ;
75+ } ) ;
7676 }
7777
7878 // 'asyncChunks' are chunks intended for lazy/async loading usually generated as
0 commit comments