Skip to content

Instantly share code, notes, and snippets.

@OliverJAsh
Created May 21, 2015 14:06
Show Gist options
  • Save OliverJAsh/909e052379b7c3198bfb to your computer and use it in GitHub Desktop.
Save OliverJAsh/909e052379b7c3198bfb to your computer and use it in GitHub Desktop.
System.config({
"baseURL": "/",
"transpiler": "traceur",
"paths": {
"*": "*.js",
"github:*": "jspm_packages/github/*.js"
}
});
System.config({
"map": {
"traceur": "github:jmcriffey/[email protected]",
"traceur-runtime": "github:jmcriffey/[email protected]"
}
});
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
var System = System.clone();
window.System = System;
System.import('test').then(console.log.bind(console))
</script>
{
"jspm": {
"directories": {},
"devDependencies": {
"traceur": "github:jmcriffey/[email protected]",
"traceur-runtime": "github:jmcriffey/[email protected]"
}
}
}
System.register('test', [], function(_export) {
return {
setters: [],
execute: function() {
_export('test', 'test');
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment