为什么我会使用es6-module-loader获得此错误:
ES6 transpilation is only provided in the dev module loader build.
这是我尝试使用它的代码:
System.transpiler = 'babel';
System.import('app/main.js').then(function (module) {
new module.Main();
});
main.js:
import foo from './foo'
export class Main {
constructor() {
}
}
的package.json:
devDependencies": {
"babel-core": "^5.8.22",
"es6-module-loader": "^0.17.6",
"object.observe": "^0.2.4",
"qunitjs": "^1.18.0"
}