shakyShane/browser-sync — pull request #40 by aesthaddicts (2014-01-07 07:42:00+00:00)
Title: Fix AMD Support, more robust

Hello,

here is the fix for asynchronous module loaders, this time hardened and not broken by a bunch of comment tags. ;)
I've tried using cheerio but it really slowed things down up to the point of failing the test so I went with the approach of inserting the snippets before **any** line containing a script tag, even if commented out.

Hope this helps!