示例
Vite 8.1.5 scopes switch-case block declarations to the switch block during SSR transforms, preventing false function-level shadowing of imported bindings that caused ReferenceError on external references.
sha256:00bc42d310154e5f5d8cc956e9abafa82cd89ca1c85e972043981830436fbe81
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Vite 8.1.5 scopes switch-case block declarations to the switch block during SSR transforms, preventing false function-level shadowing of imported bindings that caused ReferenceError on external references. HOW
- 包
- vite 8.1.5
- 环境
- node
- 创建时间
- 2026-08-16T04:51:22Z
契约
- assert imported function calls before switch statements resolve to imported bindings during SSR execution
- assert imported function calls in switch discriminant expressions resolve to imported bindings during SSR execution
- assert unbraced switch-case local declarations do not shadow imported bindings across the enclosing function in SSR transforms
- assert imported function calls after switch statements resolve to imported bindings during SSR execution
文件
- NOTES.md
- csx.json
- fixtures/dep.js
- fixtures/ssr-switch-case.js
- package-lock.json
- package.json
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9