@@ -139,25 +139,25 @@ public function testGetImportMapData()
139
139
'entry1.js ' ,
140
140
publicPath: '/assets/entry1-d1g35t.js ' ,
141
141
javaScriptImports: [
142
- new JavaScriptImport ('/assets/imported_file1.js ' , isLazy: false , asset: $ importedFile1 , addImplicitlyToImportMap: true ),
143
- new JavaScriptImport ('/assets/styles/file1.css ' , isLazy: false , asset: $ importedCss1 , addImplicitlyToImportMap: true ),
144
- new JavaScriptImport ('normal_js_file ' , isLazy: false , asset: $ normalJsFile ),
142
+ new JavaScriptImport ('/assets/imported_file1.js ' , asset: $ importedFile1 , isLazy: false , addImplicitlyToImportMap: true ),
143
+ new JavaScriptImport ('/assets/styles/file1.css ' , asset: $ importedCss1 , isLazy: false , addImplicitlyToImportMap: true ),
144
+ new JavaScriptImport ('normal_js_file ' , asset: $ normalJsFile , isLazy: false ),
145
145
]
146
146
),
147
147
new MappedAsset (
148
148
'entry2.js ' ,
149
149
publicPath: '/assets/entry2-d1g35t.js ' ,
150
150
javaScriptImports: [
151
- new JavaScriptImport ('/assets/imported_file2.js ' , isLazy: false , asset: $ importedFile2 , addImplicitlyToImportMap: true ),
152
- new JavaScriptImport ('css_in_importmap ' , isLazy: false , asset: $ importedCssInImportmap ),
153
- new JavaScriptImport ('/assets/styles/file2.css ' , isLazy: false , asset: $ importedCss2 , addImplicitlyToImportMap: true ),
151
+ new JavaScriptImport ('/assets/imported_file2.js ' , asset: $ importedFile2 , isLazy: false , addImplicitlyToImportMap: true ),
152
+ new JavaScriptImport ('css_in_importmap ' , asset: $ importedCssInImportmap , isLazy: false ),
153
+ new JavaScriptImport ('/assets/styles/file2.css ' , asset: $ importedCss2 , isLazy: false , addImplicitlyToImportMap: true ),
154
154
]
155
155
),
156
156
new MappedAsset (
157
157
'entry3.js ' ,
158
158
publicPath: '/assets/entry3-d1g35t.js ' ,
159
159
javaScriptImports: [
160
- new JavaScriptImport ('/assets/imported_file3.js ' , isLazy: false , asset: $ importedFile3 ),
160
+ new JavaScriptImport ('/assets/imported_file3.js ' , asset: $ importedFile3 , isLazy: false ),
161
161
],
162
162
),
163
163
$ importedFile1 ,
@@ -342,7 +342,7 @@ public function getRawImportMapDataTests(): iterable
342
342
new MappedAsset (
343
343
'app.js ' ,
344
344
publicPath: '/assets/app-d1g3st.js ' ,
345
- javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , isLazy: false , asset: $ simpleAsset , addImplicitlyToImportMap: true )]
345
+ javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , asset: $ simpleAsset , isLazy: false , addImplicitlyToImportMap: true )]
346
346
),
347
347
$ simpleAsset ,
348
348
],
@@ -371,7 +371,7 @@ public function getRawImportMapDataTests(): iterable
371
371
'app.js ' ,
372
372
sourcePath: '/assets/vendor/bootstrap.js ' ,
373
373
publicPath: '/assets/vendor/bootstrap-d1g3st.js ' ,
374
- javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , isLazy: false , asset: $ simpleAsset , addImplicitlyToImportMap: true )]
374
+ javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , asset: $ simpleAsset , isLazy: false , addImplicitlyToImportMap: true )]
375
375
),
376
376
$ simpleAsset ,
377
377
],
@@ -391,7 +391,7 @@ public function getRawImportMapDataTests(): iterable
391
391
'imports_simple.js ' ,
392
392
publicPathWithoutDigest: '/assets/imports_simple.js ' ,
393
393
publicPath: '/assets/imports_simple-d1g3st.js ' ,
394
- javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , isLazy: false , asset: $ simpleAsset , addImplicitlyToImportMap: true )]
394
+ javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , asset: $ simpleAsset , isLazy: false , addImplicitlyToImportMap: true )]
395
395
);
396
396
yield 'it processes imports recursively ' => [
397
397
[
@@ -404,7 +404,7 @@ public function getRawImportMapDataTests(): iterable
404
404
new MappedAsset (
405
405
'app.js ' ,
406
406
publicPath: '/assets/app-d1g3st.js ' ,
407
- javaScriptImports: [new JavaScriptImport ('/assets/imports_simple.js ' , isLazy: true , asset: $ eagerImportsSimpleAsset , addImplicitlyToImportMap: true )]
407
+ javaScriptImports: [new JavaScriptImport ('/assets/imports_simple.js ' , asset: $ eagerImportsSimpleAsset , isLazy: true , addImplicitlyToImportMap: true )]
408
408
),
409
409
$ eagerImportsSimpleAsset ,
410
410
$ simpleAsset ,
@@ -440,7 +440,7 @@ public function getRawImportMapDataTests(): iterable
440
440
new MappedAsset (
441
441
'app.js ' ,
442
442
publicPath: '/assets/app-d1g3st.js ' ,
443
- javaScriptImports: [new JavaScriptImport ('imports_simple ' , isLazy: true , asset: $ eagerImportsSimpleAsset , addImplicitlyToImportMap: false )]
443
+ javaScriptImports: [new JavaScriptImport ('imports_simple ' , asset: $ eagerImportsSimpleAsset , isLazy: true , addImplicitlyToImportMap: false )]
444
444
),
445
445
$ eagerImportsSimpleAsset ,
446
446
$ simpleAsset ,
@@ -472,7 +472,7 @@ public function getRawImportMapDataTests(): iterable
472
472
new MappedAsset (
473
473
'app.js ' ,
474
474
publicPath: '/assets/app-d1g3st.js ' ,
475
- javaScriptImports: [new JavaScriptImport ('simple ' , isLazy: false , asset: $ simpleAsset )]
475
+ javaScriptImports: [new JavaScriptImport ('simple ' , asset: $ simpleAsset , isLazy: false )]
476
476
),
477
477
$ simpleAsset ,
478
478
],
@@ -609,7 +609,7 @@ public function getEagerEntrypointImportsTests(): iterable
609
609
new MappedAsset (
610
610
'app.js ' ,
611
611
publicPath: '/assets/app.js ' ,
612
- javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , isLazy: false , asset: $ simpleAsset )]
612
+ javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , asset: $ simpleAsset , isLazy: false )]
613
613
),
614
614
['/assets/simple.js ' ], // path is the key in the importmap
615
615
];
@@ -618,7 +618,7 @@ public function getEagerEntrypointImportsTests(): iterable
618
618
new MappedAsset (
619
619
'app.js ' ,
620
620
publicPath: '/assets/app.js ' ,
621
- javaScriptImports: [new JavaScriptImport ('simple ' , isLazy: false , asset: $ simpleAsset )]
621
+ javaScriptImports: [new JavaScriptImport ('simple ' , asset: $ simpleAsset , isLazy: false )]
622
622
),
623
623
['simple ' ], // path is the key in the importmap
624
624
];
@@ -627,21 +627,21 @@ public function getEagerEntrypointImportsTests(): iterable
627
627
new MappedAsset (
628
628
'app.js ' ,
629
629
publicPath: '/assets/app.js ' ,
630
- javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , isLazy: true , asset: $ simpleAsset )]
630
+ javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , asset: $ simpleAsset , isLazy: true )]
631
631
),
632
632
[],
633
633
];
634
634
635
635
$ importsSimpleAsset = new MappedAsset (
636
636
'imports_simple.js ' ,
637
637
publicPathWithoutDigest: '/assets/imports_simple.js ' ,
638
- javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , isLazy: false , asset: $ simpleAsset )]
638
+ javaScriptImports: [new JavaScriptImport ('/assets/simple.js ' , asset: $ simpleAsset , isLazy: false )]
639
639
);
640
640
yield 'an entry follows through dependencies recursively ' => [
641
641
new MappedAsset (
642
642
'app.js ' ,
643
643
publicPath: '/assets/app.js ' ,
644
- javaScriptImports: [new JavaScriptImport ('/assets/imports_simple.js ' , isLazy: false , asset: $ importsSimpleAsset )]
644
+ javaScriptImports: [new JavaScriptImport ('/assets/imports_simple.js ' , asset: $ importsSimpleAsset , isLazy: false )]
645
645
),
646
646
['/assets/imports_simple.js ' , '/assets/simple.js ' ],
647
647
];
0 commit comments