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

Added .js extensions to imports in /demo. Fixes #400. #402

Merged
merged 1 commit into from
Jun 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ <h1>Module Loader Polyfill</h1>
<p>Check the console in your browser developer tools! This code is currently loaded in the page:</p>
<pre>
&lt;script src="../node_modules/traceur/bin/traceur.js">&lt;/script>
&lt;script src="../dist/es6-module-loader.js">&lt;/script>
&lt;script src="../dist/es6-module-loader-dev.js">&lt;/script>
&lt;script type="module">
import { hello } from 'test1';
import { hello } from 'test1.js';
console.log(hello); // -> world

// es6 syntax
Expand All @@ -33,7 +33,7 @@ <h1>Module Loader Polyfill</h1>
&lt;script>
function buttonClick() {
// dynamic loading API
System.import('test2').then(function(module) {
System.import('test2.js').then(function(module) {
new module.Foo();
});
}
Expand All @@ -46,9 +46,9 @@ <h1>Module Loader Polyfill</h1>
</footer>

<script src="../node_modules/traceur/bin/traceur.js"></script>
<script src="../dist/es6-module-loader.js"></script>
<script src="../dist/es6-module-loader-dev.js"></script>
<script type="module">
import { hello } from 'test1';
import { hello } from 'test1.js';
console.log(hello); // -> world

// es6 syntax
Expand All @@ -59,7 +59,7 @@ <h1>Module Loader Polyfill</h1>
<script>
function buttonClick() {
// dynamic loading API
System.import('test2').then(function(module) {
System.import('test2.js').then(function(module) {
new module.Foo();
});
}
Expand Down