Tools: Source map support

Created on 17 Feb 2014  路  24Comments  路  Source: Polymer/tools

Are there any plans to support source maps in Vulcanize? Like any other transformation tool, it'd be really valuable to be able to trace code back to the original source.

I'm not aware of any other tool creating source maps for HTML yet (as opposed to the usual CSS/JS), so the spec might need some adapting in terms of how the source map is referenced from a comment at the end of the generated source file.

bundler Medium Enhancement

Most helpful comment

Please stop spamming my notification feed with +1 posts, use an emoticon reaction to signal your support and the star button to track it.

All 24 comments

I'll keep this in mind with the refactor I'm doing in #13

I don't believe any browser is capable of understanding anything like an HTML sourcemap at the moment, but I'll evaluate as I go.

Would it be fair to say that if you placed your JS in external files that source maps would then be quite handy?

Same for CSS too I guess.

+1 to this feature request

+1

+1

+1 for feature request

+1 what's the status on this? would it likely entail a lot of work?

for things like Chrome's downloads or settings page, we'd probably want some way of reversing a trace back to original code line number as we get a lot of bugs in the wild that are hard to reproduce ourselves

+鹿

+1 tracking bugs in production is a PITA without sourcemaps.

I don't believe any browser is capable of understanding anything like an HTML sourcemap at the moment, but I'll evaluate as I go.

@azakus This is a datapoint of one, but the size of my elements are 10:1 JS:HTML/CSS. When used in conjunction with CSP ....

I've officially run into two bugs in production that I can't reproduce without running it through Vulcanize/Polybuild. The lack of source maps makes Polymer unsuitable for production use and this ticket should at least be prioritized.

@indolering are you combining vulcanize with any html/css minifiers? they can often cause subtle bugs

@robdodson No, but I ran into a bug in Polybuild's CSS minifier too.

In Polymer Starter Kit we had issues with polybuild and switched back to using Vuclanize by itself. Have you tried that?

I combine only babel 5.x and than vulcanize together

@robdodson Turning CSP back on fixed it, I had manually disabled it. I'm just afraid that something is going to break in the future and I will be unable to troubleshoot it properly. I can't risk releasing something into production that I might have to pull because I can't troubleshoot what's wrong with the vulcanize or the minifier.

+1

+1

+1

+1

+1

Please stop spamming my notification feed with +1 posts, use an emoticon reaction to signal your support and the star button to track it.

Was this page helpful?
0 / 5 - 0 ratings