@@ -139,25 +139,25 @@ public function testGetImportMapData()
139139 'entry1.js ' ,
140140 publicPath: '/assets/entry1-d1g35t.js ' ,
141141 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 ),
145145 ]
146146 ),
147147 new MappedAsset (
148148 'entry2.js ' ,
149149 publicPath: '/assets/entry2-d1g35t.js ' ,
150150 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 ),
154154 ]
155155 ),
156156 new MappedAsset (
157157 'entry3.js ' ,
158158 publicPath: '/assets/entry3-d1g35t.js ' ,
159159 javaScriptImports: [
160- new JavaScriptImport ('/assets/imported_file3.js ' , isLazy: false , asset: $ importedFile3 ),
160+ new JavaScriptImport ('/assets/imported_file3.js ' , asset: $ importedFile3 , isLazy: false ),
161161 ],
162162 ),
163163 $ importedFile1 ,
@@ -342,7 +342,7 @@ public function getRawImportMapDataTests(): iterable
342342 new MappedAsset (
343343 'app.js ' ,
344344 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 )]
346346 ),
347347 $ simpleAsset ,
348348 ],
@@ -371,7 +371,7 @@ public function getRawImportMapDataTests(): iterable
371371 'app.js ' ,
372372 sourcePath: '/assets/vendor/bootstrap.js ' ,
373373 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 )]
375375 ),
376376 $ simpleAsset ,
377377 ],
@@ -391,7 +391,7 @@ public function getRawImportMapDataTests(): iterable
391391 'imports_simple.js ' ,
392392 publicPathWithoutDigest: '/assets/imports_simple.js ' ,
393393 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 )]
395395 );
396396 yield 'it processes imports recursively ' => [
397397 [
@@ -404,7 +404,7 @@ public function getRawImportMapDataTests(): iterable
404404 new MappedAsset (
405405 'app.js ' ,
406406 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 )]
408408 ),
409409 $ eagerImportsSimpleAsset ,
410410 $ simpleAsset ,
@@ -440,7 +440,7 @@ public function getRawImportMapDataTests(): iterable
440440 new MappedAsset (
441441 'app.js ' ,
442442 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 )]
444444 ),
445445 $ eagerImportsSimpleAsset ,
446446 $ simpleAsset ,
@@ -472,7 +472,7 @@ public function getRawImportMapDataTests(): iterable
472472 new MappedAsset (
473473 'app.js ' ,
474474 publicPath: '/assets/app-d1g3st.js ' ,
475- javaScriptImports: [new JavaScriptImport ('simple ' , isLazy: false , asset: $ simpleAsset )]
475+ javaScriptImports: [new JavaScriptImport ('simple ' , asset: $ simpleAsset , isLazy: false )]
476476 ),
477477 $ simpleAsset ,
478478 ],
@@ -609,7 +609,7 @@ public function getEagerEntrypointImportsTests(): iterable
609609 new MappedAsset (
610610 'app.js ' ,
611611 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 )]
613613 ),
614614 ['/assets/simple.js ' ], // path is the key in the importmap
615615 ];
@@ -618,7 +618,7 @@ public function getEagerEntrypointImportsTests(): iterable
618618 new MappedAsset (
619619 'app.js ' ,
620620 publicPath: '/assets/app.js ' ,
621- javaScriptImports: [new JavaScriptImport ('simple ' , isLazy: false , asset: $ simpleAsset )]
621+ javaScriptImports: [new JavaScriptImport ('simple ' , asset: $ simpleAsset , isLazy: false )]
622622 ),
623623 ['simple ' ], // path is the key in the importmap
624624 ];
@@ -627,21 +627,21 @@ public function getEagerEntrypointImportsTests(): iterable
627627 new MappedAsset (
628628 'app.js ' ,
629629 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 )]
631631 ),
632632 [],
633633 ];
634634
635635 $ importsSimpleAsset = new MappedAsset (
636636 'imports_simple.js ' ,
637637 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 )]
639639 );
640640 yield 'an entry follows through dependencies recursively ' => [
641641 new MappedAsset (
642642 'app.js ' ,
643643 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 )]
645645 ),
646646 ['/assets/imports_simple.js ' , '/assets/simple.js ' ],
647647 ];
0 commit comments