我正在使用jspm,到目前为止,当代码中出现错误时,它没有显示有意义的错误
的package.json
{
"devDependencies": {
"jspm": "^0.16.19"
},
"jspm": {
"dependencies": {
"react": "npm:react@^0.14.3",
"react-dom": "npm:react-dom@^0.14.3"
},
"devDependencies": {
"babel": "npm:babel-core@^5.8.24",
"babel-runtime": "npm:babel-runtime@^5.8.24",
"core-js": "npm:core-js@^1.1.4"
}
}
}
config.js
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system"
]
},
...
});
例如,如果我在代码中犯了一些错误,例如import xxx fro 'xxx';
或class Foo exten Bar {}
,在浏览器控制台上仅显示
我需要一些额外的配置吗?请指导。 感谢