File tree 1 file changed +16
-16
lines changed 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,21 @@ <h1>Rollup code-splitting demo</h1>
24
24
< div data-used-by ='both '> </ div >
25
25
</ div >
26
26
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 >
43
43
</ body >
44
44
</ html >
You can’t perform that action at this time.
0 commit comments