File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -363,20 +363,18 @@ class EmberApp {
363
363
manifest = this . transformManifestFiles ( manifest ) ;
364
364
}
365
365
366
- var appFiles = [ ] ;
367
366
debug ( "reading array of app file paths from manifest" ) ;
368
- manifest . appFiles . forEach ( function ( appFile ) {
369
- appFiles . push ( path . join ( distPath , appFile ) ) ;
367
+ var appFiles = manifest . appFiles . map ( function ( appFile ) {
368
+ return path . join ( distPath , appFile ) ;
370
369
} ) ;
371
370
372
- var vendorFiles = [ ] ;
373
371
debug ( "reading array of vendor file paths from manifest" ) ;
374
- manifest . vendorFiles . forEach ( function ( vendorFile ) {
375
- vendorFiles . push ( path . join ( distPath , vendorFile ) ) ;
372
+ var vendorFiles = manifest . vendorFiles . map ( function ( vendorFile ) {
373
+ return path . join ( distPath , vendorFile ) ;
376
374
} ) ;
377
375
378
376
return {
379
- appFiles : appFiles ,
377
+ appFiles : appFiles ,
380
378
vendorFiles : vendorFiles ,
381
379
htmlFile : path . join ( distPath , manifest . htmlFile ) ,
382
380
moduleWhitelist : pkg . fastboot . moduleWhitelist ,
You can’t perform that action at this time.
0 commit comments