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.

Disable source maps with macros?

See original GitHub issue

I can’t seem to find in the documentation how to disable the sourcemaps when I use emotion macros.

I see the source code reads a emotionSourceMap option but where do I define it?

Specifically, I’d like to disable them during tests

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
FezVrastacommented, Dec 11, 2018

I want to snapshot test the result of a css call and right now it includes the inlined source map

0reactions
FezVrastacommented, Dec 13, 2018

No nothing wrong, I just thought it would have been better to avoid to add some (apparently) unneeded logic to my tests. I’ll use styled then, thanks.!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable source maps in Chrome DevTools - Stack Overflow
Open Developer Tools, go to "Settings" for Developer Tools, then uncheck Enable JavaScript Sourcemaps under the "Sources" settings.
Read more >
Source Maps - Emotion
Emotion supports source maps for styles authored in JavaScript. Source map demo. Required For Source Maps: @emotion/babel-plugin must be in your Babel setup ......
Read more >
Macros from the internet will be blocked by default in Office
Provides guidance for admins about how Office blocks macros in files from the internet.
Read more >
Global Compiler Flags - Haxe - The Cross-platform Toolkit
Disables Haxe source mapping when targetting C#, removes position comments in Java and Php output. cs, java, php. replace_files, GenCommon internal. cs, java....
Read more >
Map Source Location of Blocks - Asciidoctor Docs
The sourcemap provides line and file information for all blocks in the parsed document. Specifically, it provides information about the start of each...
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