@@ -17,9 +17,9 @@ <h1>Module Loader Polyfill</h1>
17
17
< p > Check the console in your browser developer tools! This code is currently loaded in the page:</ p >
18
18
< pre >
19
19
<script src="../node_modules/traceur/bin/traceur.js"> </script>
20
- <script src="../dist/es6-module-loader.js"> </script>
20
+ <script src="../dist/es6-module-loader-dev .js"> </script>
21
21
<script type="module">
22
- import { hello } from 'test1';
22
+ import { hello } from 'test1.js ';
23
23
console.log(hello); // -> world
24
24
25
25
// es6 syntax
@@ -33,7 +33,7 @@ <h1>Module Loader Polyfill</h1>
33
33
<script>
34
34
function buttonClick() {
35
35
// dynamic loading API
36
- System.import('test2').then(function(module) {
36
+ System.import('test2.js ').then(function(module) {
37
37
new module.Foo();
38
38
});
39
39
}
@@ -46,9 +46,9 @@ <h1>Module Loader Polyfill</h1>
46
46
</ footer >
47
47
48
48
< script src ="../node_modules/traceur/bin/traceur.js "> </ script >
49
- < script src ="../dist/es6-module-loader.js "> </ script >
49
+ < script src ="../dist/es6-module-loader-dev .js "> </ script >
50
50
< script type ="module ">
51
- import { hello } from 'test1' ;
51
+ import { hello } from 'test1.js ' ;
52
52
console . log ( hello ) ; // -> world
53
53
54
54
// es6 syntax
@@ -59,7 +59,7 @@ <h1>Module Loader Polyfill</h1>
59
59
< script >
60
60
function buttonClick ( ) {
61
61
// dynamic loading API
62
- System . import ( 'test2' ) . then ( function ( module ) {
62
+ System . import ( 'test2.js ' ) . then ( function ( module ) {
63
63
new module . Foo ( ) ;
64
64
} ) ;
65
65
}
0 commit comments