Sourcemaps for combined js file
See original GitHub issueHi,
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:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
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.