File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717
18- const Entrypoint = require ( 'webpack/lib/Entrypoint' ) ;
19-
2018function isAsync ( chunk ) {
2119 if ( 'canBeInitial' in chunk ) {
2220 return ! chunk . canBeInitial ( ) ;
@@ -26,10 +24,15 @@ function isAsync(chunk) {
2624}
2725
2826function getChunkEntryNames ( chunk ) {
29- return Array . from ( new Set ( getNames ( chunk . groupsIterable ) ) ) ;
27+ if ( 'groupsIterable' in chunk ) {
28+ return Array . from ( new Set ( getNames ( chunk . groupsIterable ) ) ) ;
29+ } else {
30+ return chunk . entrypoints . map ( e => e . options . name ) ;
31+ }
3032}
3133
3234function getNames ( groups ) {
35+ const Entrypoint = require ( 'webpack/lib/Entrypoint' ) ;
3336 const names = [ ] ;
3437 for ( const group of groups ) {
3538 if ( group instanceof Entrypoint ) {
You can’t perform that action at this time.
0 commit comments