These are chat archives for systemjs/systemjs

Jul 2016
Michael Bøcker-Larsen
Jul 10 2016 00:21
@danieldram where is the export not defined coming from? Note that there error might come from plugins or modules doing the actual transpiling. System.js loads everything and of it loads it the wrong way you may get errors like that. I've tried loads of configurations and plugins for transpiling, but only one really worked: systemjs-plugin-babel
Michael Bøcker-Larsen
Jul 10 2016 00:27
This is my plugin setup:
module.exports = {
  baseURL: 'resources/assets/',
  transpiler: 'plugin-babel',
  defaultJSExtensions: true,
  meta: {
    'vendor/knockout/build/output/knockout-latest.js': { format: 'global', deps: ['jquery'] },
    'vendor/materialize-css/dist/js/materialize.js': { format: 'global', deps: ['jquery'] },
    'vendor/moment/min/moment.min.js': { format: 'global', deps: ['jquery'] },
    'vendor/**/*js': {
      build: false,
    'js/**/*.js': {
      babelOptions: {
        stage1: true
  map: {
    'plugin-babel': 'vendor/systemjs-plugin-babel',
    'systemjs-babel-build': 'vendor/systemjs-plugin-babel/systemjs-babel-browser.js',
    ... other mappings ...
  1. Note that building of vendor libs is disabled (in meta)
  2. Note that babelOptions is in the meta section targeting only your ES6 files
  3. In the map section there are two entries for the plugin plugin-babel is required by systemjs transpiler section and the second systemjs-babel-build is required from inside systemjs-plugin-babel.js (the file)