`@swc/html` 合并相邻的传统 `<script>` 元素,改变评估语义并删除代码
作者: oddharsh创建于 2026年9月22日更新于 2026年9月22日
`@swc/html` concatenates adjacent classic `<script>` elements into a single element. Two script elements are two separate evaluations, so the merge changes runtime behavior in three ways, and in one case it deletes code from the output.
内容来源: swc-project/swc