# Pitfall Log / 踩坑日志

项目：Menci/vite-plugin-top-level-await

摘要：发现 18 个潜在踩坑项，其中 5 个为 high/blocking；最高优先级：安装坑 - 来源证据：Breaks with Nuxt's `renderer.mjs` that generated bypassing Vite。

## 1. 安装坑 · 来源证据：Breaks with Nuxt's `renderer.mjs` that generated bypassing Vite

- 严重度：high
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Breaks with Nuxt's `renderer.mjs` that generated bypassing Vite
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/64 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。

## 2. 安装坑 · 来源证据：Bun doesn't support module.require

- 严重度：high
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Bun doesn't support module.require
- 对用户的影响：可能阻塞安装或首次运行。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/68 | 来源讨论提到 node 相关条件，需在安装/试用前复核。

## 3. 安装坑 · 来源证据：Code broken when used with Remix

- 严重度：high
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Code broken when used with Remix
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/72 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。

## 4. 安装坑 · 来源证据：Support vite 8

- 严重度：high
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Support vite 8
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/76 | 来源讨论提到 node 相关条件，需在安装/试用前复核。

## 5. 运行坑 · 来源证据：Code relying on function hoisting is broken

- 严重度：high
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个运行相关的待验证问题：Code relying on function hoisting is broken
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/71 | 来源类型 github_issue 暴露的待验证使用条件。

## 6. 安装坑 · 来源证据：How to use in vite dev mode with chrome extension service-worker

- 严重度：medium
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：How to use in vite dev mode with chrome extension service-worker
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/57 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。

## 7. 安装坑 · 来源证据：Plugin overwrite Vite's default targets

- 严重度：medium
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Plugin overwrite Vite's default targets
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/77 | 来源讨论提到 node 相关条件，需在安装/试用前复核。

## 8. 安装坑 · 来源证据：Skipped array elements cause a crash

- 严重度：medium
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Skipped array elements cause a crash
- 对用户的影响：可能阻塞安装或首次运行。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/65 | 来源讨论提到 node 相关条件，需在安装/试用前复核。

## 9. 安装坑 · 来源证据：Vite 7 - esbuildOptions deprecated

- 严重度：medium
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Vite 7 - esbuildOptions deprecated
- 对用户的影响：可能影响升级、迁移或版本选择。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/70 | 来源类型 github_issue 暴露的待验证使用条件。

## 10. 安装坑 · 来源证据：[vite-plugin-top-level-await] Failed to convert rust String into napi string

- 严重度：medium
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[vite-plugin-top-level-await] Failed to convert rust String into napi string
- 对用户的影响：可能阻塞安装或首次运行。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/58 | 来源讨论提到 node 相关条件，需在安装/试用前复核。

## 11. 安装坑 · 来源证据：vite-plugin-top-level-await breaks initialization ordering (hoisting + deferred exports)

- 严重度：medium
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：vite-plugin-top-level-await breaks initialization ordering (hoisting + deferred exports)
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/74 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。

## 12. 能力坑 · 能力判断依赖假设

- 严重度：medium
- 证据强度：source_linked
- 发现：README/documentation is current enough for a first validation pass.
- 对用户的影响：假设不成立时，用户拿不到承诺的能力。
- 证据：capability.assumptions | github_repo:464408338 | https://github.com/Menci/vite-plugin-top-level-await | README/documentation is current enough for a first validation pass.

## 13. 维护坑 · 来源证据：The component cannot be displayed correctly.

- 严重度：medium
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个维护/版本相关的待验证问题：The component cannot be displayed correctly.
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/Menci/vite-plugin-top-level-await/issues/69 | 来源类型 github_issue 暴露的待验证使用条件。

## 14. 维护坑 · 维护活跃度未知

- 严重度：medium
- 证据强度：source_linked
- 发现：未记录 last_activity_observed。
- 对用户的影响：新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。
- 证据：evidence.maintainer_signals | github_repo:464408338 | https://github.com/Menci/vite-plugin-top-level-await | last_activity_observed missing

- 严重度：medium
- 证据强度：source_linked
- 发现：no_demo
- 证据：downstream_validation.risk_items | github_repo:464408338 | https://github.com/Menci/vite-plugin-top-level-await | no_demo; severity=medium

## 16. 安全/权限坑 · 存在评分风险

- 严重度：medium
- 证据强度：source_linked
- 发现：no_demo
- 对用户的影响：风险会影响是否适合普通用户安装。
- 证据：risks.scoring_risks | github_repo:464408338 | https://github.com/Menci/vite-plugin-top-level-await | no_demo; severity=medium

## 17. 维护坑 · issue/PR 响应质量未知

- 严重度：low
- 证据强度：source_linked
- 发现：issue_or_pr_quality=unknown。
- 对用户的影响：用户无法判断遇到问题后是否有人维护。
- 证据：evidence.maintainer_signals | github_repo:464408338 | https://github.com/Menci/vite-plugin-top-level-await | issue_or_pr_quality=unknown

## 18. 维护坑 · 发布节奏不明确

- 严重度：low
- 证据强度：source_linked
- 发现：release_recency=unknown。
- 对用户的影响：安装命令和文档可能落后于代码，用户踩坑概率升高。
- 证据：evidence.maintainer_signals | github_repo:464408338 | https://github.com/Menci/vite-plugin-top-level-await | release_recency=unknown
