Rollup 通过将有效代码更改为无效代码 (import 属性 `with` -> `assert`) 导致语法错误
作者: or9创建于 2024年9月27日更新于 2026年3月20日
标签t¹ 🐞 bugt⁸ ⋅ triage
Expected Behaviour
The web application should work. Input: import mainStyles from "../css/main.css" with { type: "css" }; Output: import mainStyles from "../css/main.css" with { type: "css" }; The expectation is that build tools should build, not change the functionality of the code. If it is changing with to assert, then what else is it changing? Given the constantly and rapidly evolving JavaScript capabilities and support tables, it seems absurd for a build tool to try to keep up with everything.
内容来源: rollup/rollup