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] Option to generate a map file even for vendor-bundle

See original GitHub issue

I’m submitting a feature request

  • Library Version: 0.20.0

Please tell us about your environment:

  • Operating System: OSX 10.11.6

  • Node Version: 6.4.0

  • NPM Version: 3.10.8

  • Browser: all

  • Language: all

Current behavior: Now I have the option to turn on/off the generation of source maps for the app-bundle, but I cannot find a way to have source maps generated for the vendor-bundle

Expected/desired behavior:

  • What is the expected behavior? Have a configuration option to generate the source maps for the vendor-bundle
  • What is the motivation / use case for changing the behavior? Sometimes you are in the following conditions:
  • There’s a bug or an undocumented behavior in library code, and you need to step into the code to quickly find what’s happening in the browser
  • You wrapped some common components in npm packages, and you published in a private repo. You want this common components in the vendor-bundle as they are not strictly app code. But you’d like to be able to debug them in the browser as well, even if they have tons of unit tests…

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jadrake75commented, Oct 22, 2016

Our corporate project is deploying all our common “code” as a library that is used in our applications. This has been a critical issue for us. My assumption was there was just some switch we had to flick to get it to work, but it would appear to be a deeper issue. We do have our app code source mapping, but that is only usually about 5-10% of the total app (since most is encapsulated in common library code published to our internal repos) @zhhz would be most interested.

I should mention, that our need is primarily not for the vendor-bundle but for another bundle (which is our library) but from the inclusion perspective it would be the same as vendor… ie. the code is not present directly, but the modules in node_modules do have the source maps.

0reactions
Jenselmecommented, Nov 25, 2017

I have tested this, and a sourcemap is now generated for the vendor-bundle when atleast one sourcemap has been found.

That’s good if you include minified files with source maps. But if like me you rely on the build process to minify your files, you’re still stuck. And I don’t see any improvements on this in #624. Should this issue be re-opened?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Option to exclude certain bundles from source map generation
I have tested excluding source map generation for the vendor bundle by adding an excludes: ['vendor'] to the SourceMapDevToolPlugin and this ...
Read more >
Get the most out of the linker map file - Interrupt
In this article, I want to highlight how simple linker map files are and how much they can teach you about the program...
Read more >
Bazel and map files? - Google Groups
I'm building an arm-gcc toolchain and trying to figure out how to get Bazel to generate map files that end up in bazel-bin...
Read more >
What are the .map files used for in angular-cli and can ng ...
.map files are used for debugging your application. It is not related with angular-cli and is feature of typescript compiler, you may set\unset...
Read more >
Selecting map files for map visualizations - IBM
Overlay map templates require two maps: a primary map file and a reference map file. The reference map is drawn first so that...
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