This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Potentially unhandled rejection [3] TypeError: Error loading "index" at http://localhost:8080/index.js | |
Error loading "index" from "test.js" at http://localhost:8080/test/test.js | |
Cannot read property 'name' of null | |
at l (http://localhost:8080/test/vendor/es6-module-loader.js:7:16462) | |
at j (http://localhost:8080/test/vendor/es6-module-loader.js:7:16047) | |
at k (http://localhost:8080/test/vendor/es6-module-loader.js:7:16389) | |
at http://localhost:8080/test/vendor/es6-module-loader.js:7:14764 | |
at O (http://localhost:8080/test/vendor/es6-module-loader.js:7:7453) | |
at K (http://localhost:8080/test/vendor/es6-module-loader.js:7:7085) | |
at y.7.y.when (http://localhost:8080/test/vendor/es6-module-loader.js:7:10759) | |
at v.7.v.run (http://localhost:8080/test/vendor/es6-module-loader.js:7:9795) | |
at a.3.a._drain (http://localhost:8080/test/vendor/es6-module-loader.js:7:1746) | |
at 3.a.drain (http://localhost:8080/test/vendor/es6-module-loader.js:7:1400) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { var __moduleName = "index"; var __moduleAddress = "http://localhost:8080/index.js";System.register([], function (_export) { | |
var foo = regeneratorRuntime.mark(function foo(msg, fn) { | |
return regeneratorRuntime.wrap(function foo$(context$1$0) { | |
while (1) switch (context$1$0.prev = context$1$0.next) { | |
case 0: | |
return context$1$0.abrupt("return", true); | |
case 1: | |
case "end": | |
return context$1$0.stop(); | |
} | |
}, foo, this); | |
}); | |
_export("foo", foo); | |
return { | |
setters: [], | |
execute: function () { | |
"use strict"; | |
} | |
}; | |
}); | |
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO01BQ2lCLEdBQUcsMkJBQWIsU0FBVSxHQUFHLENBQUMsR0FBRyxFQUFFLEVBQUU7Ozs7OENBQ25CLElBQUk7Ozs7OztPQURJLEdBQUc7R0FFbkI7O2lCQUZnQixHQUFHIiwiZmlsZSI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5leHBvcnQgZnVuY3Rpb24qIGZvbyhtc2csIGZuKSB7XHJcbiAgcmV0dXJuIHRydWU7XHJcbn1cclxuIl19 | |
}).call(__global); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf8"> | |
<meta http-equiv="cache-control" content="max-age=0"> | |
<meta http-equiv="cache-control" content="no-cache"> | |
<meta http-equiv="expires" content="0"> | |
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT"> | |
<meta http-equiv="pragma" content="no-cache"> | |
<title>test</title> | |
</head> | |
<body> | |
<script src="vendor/system.js"></script> | |
<script> | |
System.transpiler = 'babel'; | |
System.paths['babel'] = 'vendor/babel.js'; | |
System.paths['index'] = '../index.js'; | |
System.import('test.js'); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function *foo(msg, fn) { | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { foo } from 'index'; | |
console.log(foo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment