打包后声明的顺序不正确(ReferenceError: 在初始化之前无法访问 'X')
作者: q2p创建于 2025年8月9日更新于 2026年3月20日
标签t¹ 🐞 bugt⁸ ⋅ triage
Rollup 4.46.2 struggles to properly order declarations. I think it's a bundler's job to correctly resolve the order of dependencies, that's why I decided to open this issue. Here's the simplest example I could come up with:
内容来源: rollup/rollup