dart_to_js_script_rewriter
dart_to_js_script_rewriter copied to clipboard
transformer also transforms html files in lib
The transformer also transforms html files in lib, this can give problems together with angular2 for example. It would be better I think if this would only transform files in web, and also only change the html if there is a match.
it now adds html/body tags to angular templates for example:

Same problem here: too much work is done by the transformer.
I though that only the script tags would be rewritten but instead the complete markup is transformed for all HTML files in lib and web folders:
- empty values are added to boolean attributes (
asyncordownloadbecomesasync=""ordownload="") - HTML entities are converted to Unicode characters (
–becomes-) <html>,<head>and<body>tags are added to HTML fragments (e.g. partial views)
Proposal:
- Only touch files that have a dart script and are not in
liband leave the others as they are
Fixed in e639fc27.