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.

Feature Request: Sourcemap Path Transformations

See original GitHub issue

Please provide an option to configure sourcemap path transformations like output.sourcemapPathTransform option that Rollup provides. Alternatively reuse the output.sourcemapPathTransform property if sourcemaps are enabled for css.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
CxRescommented, Jan 24, 2021

I just tried to implement the feature in my code and I realized you would need to expose sourcemapPath, like sourcemapPathTransform function in Rollup does…

1reaction
Anidetrixcommented, Jan 24, 2021

@CxRes done, see transform from sourcemap options

Usage example:

styles({
  sourceMap: [true, { transform: m => (m.sources = ["virt"]) }]
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get the current sourcemap in the transform hook ? #2983
If an output with sourcemaps is created, this chain is merged ("collapsed") with all transformations done by Rollup itself into a final map....
Read more >
Anatomy of source maps | Bugsnag Blog
Source maps help you debug errors in your JavaScript code by mapping minified code to your original source. Learn how source maps work...
Read more >
4 Reasons Why Your Source Maps are Broken - Sentry Blog
Missing or incorrect source map directive · Missing original source files · Bad source maps caused by multiple transformations · Files are ...
Read more >
Source Maps from top to bottom - ITNEXT
This article covers a basic overview and an in-depth explanation of the mechanics of JS code generators and source maps.
Read more >
Top 5 source-map-support Code Examples | Snyk
To help you get started, we've selected a few source-map-support 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