componentjs / component

frontend package manager and build tool for modular web applications
https://github.com/componentjs/guide
MIT License
4.55k stars 306 forks source link

On chrome debug points off by two lines for --dev builds #631

Closed sankargorthi closed 9 years ago

sankargorthi commented 9 years ago

putting debug points on the sources of home.html shows the incorrect line of code. (happens on canary as well)

screen shot 2015-03-14 at 4 13 07 pm

screen shot 2015-03-14 at 4 13 22 pm

screen shot 2015-03-14 at 4 13 28 pm

Works in Firefox as the debugger doesn't show the

(function(exports, module
/**/) {

lines in the source.

19h commented 9 years ago

That's a Chrome bug. We ran into it as soon as Canary became Stable. I am confident that the comments used for annotations are causing this bug in Chrome and it wasn't properly unit tested. (regression, that is)

sankargorthi commented 9 years ago

https://code.google.com/p/chromium/issues/detail?id=451015

Removing new lines in the require implementation didn't seem to help either. Closing this as it's not component(1)'s problem.