systemjs / plugin-babel

SystemJS Babel Plugin
MIT License
82 stars 33 forks source link

Compatibility with babel-preset-es2015 #10

Closed teohhanhui closed 8 years ago

teohhanhui commented 8 years ago
System.config({
  babelOptions: {
    "presets": [
        "babel-preset-es2015"
    ]
  }
});

causes require is not a function

guybedford commented 8 years ago

Presets in the plugin reference modules to load the presets from with SystemJS (System.import('babel-preset-es2015')). By default the plugin comes with the es2015 preset, you don't need to provide it at all.

teohhanhui commented 8 years ago

Yes, I'm aware that it comes by default with es2015 (except for Symbol, right?) and stage3 but that's not the issue here.

Trying to load those presets shouldn't cause the whole thing to break. (At least put a visible warning somewhere if that can't be fixed?)