I found that the regex for parsing the shared deps array was incorrect if it was empty (eg. System.register([],(function(e){}))) (source). This PR changes the regex so that it capture zero or many characters, as well as handles if the captured string is unable to be JSON.parsed.
I found that the regex for parsing the shared deps array was incorrect if it was empty (eg.
System.register([],(function(e){}))
) (source). This PR changes the regex so that it capture zero or many characters, as well as handles if the captured string is unable to beJSON.parse
d.To validate this fix:
^System\.register\((\[.*?\])
Both should return the array of the System.register call.