From 3986c8a5a52c5162b5aa90392898c3f6b0e0900a Mon Sep 17 00:00:00 2001 From: Raphael Okon Date: Thu, 18 Jun 2015 15:41:52 +0200 Subject: [PATCH] Added .js extensions to imports in /demo. Fixes load error in the demo --- demo/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/demo/index.html b/demo/index.html index cdedc47..611ad20 100644 --- a/demo/index.html +++ b/demo/index.html @@ -17,9 +17,9 @@

Module Loader Polyfill

Check the console in your browser developer tools! This code is currently loaded in the page:

   <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
@@ -33,7 +33,7 @@ 

Module Loader Polyfill

<script> function buttonClick() { // dynamic loading API - System.import('test2').then(function(module) { + System.import('test2.js').then(function(module) { new module.Foo(); }); } @@ -46,9 +46,9 @@

Module Loader Polyfill

- +