Does Karma support source map files?

前端 未结 2 851
逝去的感伤
逝去的感伤 2021-02-20 03:51

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 an

2条回答
  •  别跟我提以往
    2021-02-20 04:24

    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.

提交回复
热议问题