Web Component without HTML produces syntax error
Web Component without HTML produces syntax error

When loading a Web Component that consists only of HTML imports and a <script/> tag, the output contains a space and a newline. As the regex does not properly match spaces, it is put in the function string on line 22 and this generates a syntax error.
aruntk/wc-loader