These are chat archives for systemjs/systemjs

13th
Sep 2017
Corey Johnson
@probablycorey
Sep 13 2017 02:37
I'm trying to figure out how to use the output from the babel-plugin-transform-es2015-modules-systemj plugin
It transpiles import something from 'somewhere'; console.log(something) into...
System.register(['somewhere'], function (_export, _context) {
  "use strict";

  var something;
  return {
    setters: [function (_httpLocalhost3000somewhere) {
      something = _httpLocalhost3000somewhere.default;
    }],
    execute: function () {
      console.log(something);
    }
  };
});
But that transpiled code never runs. How do I execute it?
Corey Johnson
@probablycorey
Sep 13 2017 02:56