Open stormslowly opened 1 week ago
the root cause is below svgr-rs
&中文
refas_bytes()
&
to convert them to string , then hit byte index 6 is not a char boundary
the errorIMO, the best way to solve the problem is , swc_xml_parser un-escaping the text children of html
besides this problem, Mako should put compile()
in a catch_unwind
in case this problem, node process should get an error other than process abort.
@stormslowly I have published version 0.2.0 to incorporate your PR.
problem
solution
we don't have to escape by hand, use the crate html-escape
will be fixed in pr #1444