Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 3986c8a

Browse files
committed
Added .js extensions to imports in /demo. Fixes load error in the demo
1 parent e89815b commit 3986c8a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

demo/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ <h1>Module Loader Polyfill</h1>
1717
<p>Check the console in your browser developer tools! This code is currently loaded in the page:</p>
1818
<pre>
1919
&lt;script src="../node_modules/traceur/bin/traceur.js">&lt;/script>
20-
&lt;script src="../dist/es6-module-loader.js">&lt;/script>
20+
&lt;script src="../dist/es6-module-loader-dev.js">&lt;/script>
2121
&lt;script type="module">
22-
import { hello } from 'test1';
22+
import { hello } from 'test1.js';
2323
console.log(hello); // -> world
2424

2525
// es6 syntax
@@ -33,7 +33,7 @@ <h1>Module Loader Polyfill</h1>
3333
&lt;script>
3434
function buttonClick() {
3535
// dynamic loading API
36-
System.import('test2').then(function(module) {
36+
System.import('test2.js').then(function(module) {
3737
new module.Foo();
3838
});
3939
}
@@ -46,9 +46,9 @@ <h1>Module Loader Polyfill</h1>
4646
</footer>
4747

4848
<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>
5050
<script type="module">
51-
import { hello } from 'test1';
51+
import { hello } from 'test1.js';
5252
console.log(hello); // -> world
5353

5454
// es6 syntax
@@ -59,7 +59,7 @@ <h1>Module Loader Polyfill</h1>
5959
<script>
6060
function buttonClick() {
6161
// dynamic loading API
62-
System.import('test2').then(function(module) {
62+
System.import('test2.js').then(function(module) {
6363
new module.Foo();
6464
});
6565
}

0 commit comments

Comments
 (0)