steal-es6-module-loader
Version:
An ES6 Module Loader shim
31 lines (23 loc) • 631 B
HTML
<html>
<body></body>
<script src="test.js"></script>
<!-- set this to the path to babel.js -->
<script src="../node_modules/regenerator/runtime.js"></script>
<script>
// test promise polyfill
// delete window.Promise;
</script>
<script src="../node_modules/when/es6-shim/Promise.js"></script>
<script src="../dist/es6-module-loader.src.js"></script>
<script>
System.transpiler = 'babel';
System.paths['babel'] = '../node_modules/babel-core/browser.js';
</script>
<script>
// test tracing
System.trace = true;
</script>
<script>
runTests();
</script>