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.

Sourcemaps for combined js file

See original GitHub issue

Hi,

We use Raygun.io for crash-reporting in production, and we found that without sourcemaps, the error details are not very helpful. I know connect-assets support source maps for seperate js files, but we are using a single combined js file in production, whose source look like this:

// This is application.js
//
//= require semantic-ui
//= require highcharts/highcharts
//= require highcharts/modules/drilldown
//= require polyglot/build/polyglot
...

Is there anyway to generate a sourcemap file for the combined js? I’m thinking something like application.js.map?

Thanks a lot!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
blakevanlancommented, Jun 20, 2016

We really should have better source map support for production environments. The focus of the source map support originally was for dev and staging kinds of use cases. I’ll look into making it easy to use source maps for production (outputting for upload to external services and such).

Thanks for the input!

1reaction
blakevanlancommented, Jul 18, 2016

Finally had the time to take a look at this and I just published 5.3.0 that now has a --sourceMaps option for the CLI! This will write the source map for each file to the builtAssets directory with the .map extension appended to the original filename.

@codynguyen and @siboulet: Let me know how it works for you guys and if there’s something I’ve missed. Sorry for the month delay on this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

combine-source-map - npm
Add source maps of multiple files, offset them and then combine them into one source map. Latest version: 0.8.0, last published: 6 years...
Read more >
Combine source maps of two compilation steps - Stack Overflow
Add source maps of multiple files, offset them and then combine them into one source map. After evaluating merge-source-maps it looks promising, ...
Read more >
How to Use the merge-source-map Library - inspirnathan
Learn how to combine source maps together! ... The first file will be a JavaScript file, output-1.js , containing the following contents: js....
Read more >
Introduction to JavaScript Source Maps - Chrome Developers
Source maps are a way to map a combined/minified file back to an unbuilt state. When you build for production, along with minifying...
Read more >
Top 5 combine-source-map Code Examples - Snyk
To help you get started, we've selected a few combine-source-map examples, based on popular ways it is used in public projects.
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