question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

option to set location for sourcemaps (for console logs)

See original GitHub issue

Ok so to get sourcemaps fully working with Sentry, i have to modify quite a few things:

  • change the location of sourcemaps (like with hidden sourcemaps)
  • force sourceMappingURL to follow the format app:///bundle.js.map (so no mention to the relative path where source maps are located).

Consequently sourceMapConverter will fail here because this is the wrong location. I guess it tries to find the sourcemap in the same dir as the source itself. Or even what does it do with app:///

Do you think it would be possible to define somewhere (project wise) the location of the sourcemaps. May be using https://github.com/thlorenz/convert-source-map#frommapfilecommentcomment-mapfiledir ?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bellalMohamedcommented, Oct 27, 2020
0reactions
farfromrefugcommented, Apr 11, 2021

@Kolobok12309 should ask that on Discord. You can find me there. I ll help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Map the processed code to your original source code, for ...
Enable source maps in Settings · To open DevTools, in Microsoft Edge, right-click a webpage, and then select Inspect. · In DevTools, click ......
Read more >
Sourcemaps breaks for console.log in node_modules in ...
I'm trying to enable sourcemaps for my Babel 7.7 and Webpack 4.41 built code. The sourcemaps work fine except for console statements that ......
Read more >
JavaScript Debugging with Sourcemaps - TrackJS
Enter the Sourcemap ... A sourcemap is a mapping between the generated/transpiled/minified JavaScript file and one or more original source files. The main...
Read more >
Using sourcemaps on production without exposing the source ...
Sourcemaps can be easily configured with webpack, all you need to do is to set devTool property in your webpack.config.js to either ...
Read more >
How to set up source maps to help debug production JavaScript
Developers can use source maps to map transpiled code back to their original source code. These five tips help developers get source maps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found