Do source maps work for Chrome extensions?

后端 未结 4 667
一生所求
一生所求 2020-12-17 20:49

I\'m using the Closure compiler to create a Chrome extension and I\'d like to get source maps to work for debugging. I can get source maps to work just fine by pointing the

4条回答
  •  难免孤独
    2020-12-17 21:27

    I had the same problem and after switching to inline source maps, everything worked fine.

    The reason is, that chrome extension only support inline source mpas

    so, when you use webpack, just add

    devtool: "inline-source-map"
    

提交回复
热议问题