This one-line PR fixes #350, where the source maps are offset by the number of lines above the <script> opening tag:
(Line 14 is supposed to be highlighted, not line 21. And the brighter-colored line numbers should correspond with the lines where there is source code; picture them shifted up 8 lines each.)
Once this is merged in, not only will debugger statements be highlighted on the proper line, but you can also just click on the line number in the gutter in DevTools to set a breakpoint on that line (you know, how it’s supposed to work). Fixes akryum:vue-coffee too.
This one-line PR fixes #350, where the source maps are offset by the number of lines above the
<script>
opening tag:(Line 14 is supposed to be highlighted, not line 21. And the brighter-colored line numbers should correspond with the lines where there is source code; picture them shifted up 8 lines each.)
Once this is merged in, not only will
debugger
statements be highlighted on the proper line, but you can also just click on the line number in the gutter in DevTools to set a breakpoint on that line (you know, how it’s supposed to work). Fixesakryum:vue-coffee
too.