Skip to content

Commit a0789e8

Browse files
committed
Improve indentation, fix typo
1 parent 6086e30 commit a0789e8

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

public/index.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ <h1>Rollup code-splitting demo</h1>
2424
<div data-used-by='both'></div>
2525
</div>
2626

27-
<script>
28-
import("/module/main-a.js");
29-
import("/module/main-b.js");
30-
window.supporsDynamicImport = true;
31-
</script>
32-
<script>
33-
if (!window.supporsDynamicImport) {
34-
const systemJsLoaderTag = document.createElement('script');
35-
systemJsLoaderTag.src = 'https://unpkg.com/systemjs@0.21.4/dist/system-production.js';
36-
systemJsLoaderTag.addEventListener('load', function () {
37-
System.import('./nomodule/main-a.js');
38-
System.import('./nomodule/main-b.js');
39-
});
40-
document.head.appendChild(systemJsLoaderTag);
41-
}
42-
</script>
27+
<script>
28+
import("/module/main-a.js");
29+
import("/module/main-b.js");
30+
window.supportsDynamicImport = true;
31+
</script>
32+
<script>
33+
if (!window.supportsDynamicImport) {
34+
const systemJsLoaderTag = document.createElement('script');
35+
systemJsLoaderTag.src = 'https://unpkg.com/systemjs@0.21.4/dist/system-production.js';
36+
systemJsLoaderTag.addEventListener('load', function () {
37+
System.import('./nomodule/main-a.js');
38+
System.import('./nomodule/main-b.js');
39+
});
40+
document.head.appendChild(systemJsLoaderTag);
41+
}
42+
</script>
4343
</body>
4444
</html>

0 commit comments

Comments
 (0)