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

[1.0] Adjust the demo to the latest spec #320

Merged
merged 1 commit into from
Mar 3, 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
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1>Module Loader Polyfill</h1>
<script src="../node_modules/traceur/bin/traceur.js"></script>
<script src="../dist/es6-module-loader.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