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.

Source maps are only generated when not using PSC IDE fast rebuilds

See original GitHub issue

When I enable fast rebuilds by adding pscIde: true to the options, the sourcemaps are not being updated.

image

How to fix this issue while still retaining the fast rebuild feature? I can’t disable fast rebuild, as I have 1500 modules, and compiling is taking me 6 seconds to complete and dev-server auto reload to trigger.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kritzcreekcommented, Dec 27, 2018

The ability to do this was added to purs ide in 0.12.1: https://github.com/purescript/purescript/pull/3449

Check out the codegen parameter in here: https://github.com/purescript/purescript/blob/9446c8bb5f6cd5e74b3f1eb787cfded684391400/psc-ide/PROTOCOL.md#rebuild

You’ll need to thread through the configuration parameter through purs-loader and then things should work with codegen: ["js", "sourcemaps"].

0reactions
ethulcommented, Jan 21, 2019

Welcome!

On Sun, Jan 20, 2019 at 23:21 Sri Harsha Chilakapati < notifications@github.com> wrote:

Great! Thanks!!

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/ethul/purs-loader/issues/116#issuecomment-455944134, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVYy_w65Rn_I-A551MqFf8AxkLy14eyks5vFUBOgaJpZM4Zioik .

Read more comments on GitHub >

github_iconTop Results From Across the Web

sourcemaps not being generated · Issue #5384 · nrwl/nx
I am using @nrwl/next and for some reason I cannot find a way to generate source maps. Running nx serve my-app --sourceMap does...
Read more >
Should I Use Source Maps in Production? | CSS-Tricks
Typically, source maps are a configuration option from the preprocessor. Here's Babel's options.
Read more >
Don't Use Create React App Until You Know This
Source maps are just JSON files that essentially rebuild what the bundlers and transpilers changed. Their main purpose is to help debug your ......
Read more >
How to configure source maps generated by babel?
Sourcemaps are only used for debugging, not for types resolving/navigation. And the IDE normally prefers original files to transpiled ones ...
Read more >
How do I generate sourcemaps when using babel and ...
In order to use source map, you should change devtool option value from true to the value which available in this list ,...
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