@@ -13,10 +13,11 @@ export default async function () {
1313 // files were created successfully
1414 await expectFileToMatch ( 'dist/test-project/polyfills-es5.js' , 'core-js/proposals/reflect-metadata' ) ;
1515 await expectFileToMatch ( 'dist/test-project/polyfills-es5.js' , 'zone.js' ) ;
16- expectFileToMatch ( 'dist/test-project/index.html' , oneLineTrim `
17- <script src="runtime.js"></script>
16+ await expectFileToMatch ( 'dist/test-project/index.html' , oneLineTrim `
17+ <script src="runtime-es2015.js" type="module"></script>
18+ <script src="polyfills-es2015.js" type="module"></script>
19+ <script src="runtime-es5.js" nomodule></script>
1820 <script src="polyfills-es5.js" nomodule></script>
19- <script src="polyfills.js"></script>
2021 ` ) ;
2122 const jitPolyfillSize = await getFileSize ( 'dist/test-project/polyfills-es5.js' ) ;
2223
@@ -26,9 +27,10 @@ export default async function () {
2627 await expectFileSizeToBeUnder ( 'dist/test-project/polyfills-es5.js' , jitPolyfillSize ) ;
2728 await expectToFail ( ( ) => expectFileToMatch ( 'dist/test-project/polyfills-es5.js' , 'core-js/proposals/reflect-metadata' ) ) ;
2829 await expectFileToMatch ( 'dist/test-project/polyfills-es5.js' , 'zone.js' ) ;
29- expectFileToMatch ( 'dist/test-project/index.html' , oneLineTrim `
30- <script src="runtime-es5.js"></script>
30+ await expectFileToMatch ( 'dist/test-project/index.html' , oneLineTrim `
31+ <script src="runtime-es2015.js" type="module"></script>
32+ <script src="polyfills-es2015.js" type="module"></script>
33+ <script src="runtime-es5.js" nomodule></script>
3134 <script src="polyfills-es5.js" nomodule></script>
32- <script src="polyfills.js"></script>
3335 ` ) ;
3436}
0 commit comments