业力支持源地图文件吗?
问题描述:
是否可以将Karma配置为将源映射文件用于堆栈跟踪?我看到GitHub上的一些问题似乎已经解决了?但是,我找不到这样做的任何例子.
Is it possible to configure Karma to use source map files for stacktraces? I see that there are a few issues on GitHub which appear to have been closed? I can't however find any example of doing so.
如果支持,有人可以举例说明配置吗?
If this is supported can someone illustrate an example config?
答
在您的karma.config.js文件中添加
In your karma.config.js file add
config.set({
files: [{
pattern: '**/*.js.map',
included: false
},
...
});
这对我有用,文件现在由业力提供.
This has worked for me, and files are now served by karma.