Skip to content

Instantly share code, notes, and snippets.

@ravinggenius
Last active November 8, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravinggenius/28d7093a02de34710848 to your computer and use it in GitHub Desktop.
Save ravinggenius/28d7093a02de34710848 to your computer and use it in GitHub Desktop.
var System = require('es6-module-loader').System;
// System.transpiler = 'babel';
// System.transpiler = 'typescript';
System.import('./index').then(function (index) {
index.run(__dirname);
}).catch(function (error) {
console.log('error', error);
});
export default class Cat {
}
import Cat from './cat';
// use Cat...
@ravinggenius
Copy link
Author

This is supposed to work, but System had trouble loading 'babel'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment