9
公开标注数
7
参与人数
2026-07-17 09:59:02
首次 Whisper
讨论活跃度
vite.dev 近 17 周的公开 Whisper
少多
最新公开 Whisper
划选高亮2026-07-18 16:23:08
原文高亮摘录
“vite/client provides the following type shims”
Whisper 随想笔记
Wait, does that mean I need to add vite/client to my tsconfig or just import it?
划选高亮2026-07-18 13:20:08
原文高亮摘录
“Vite only performs transpilation on .ts files and does NOT perform type checking”
Whisper 随想笔记
Yeah that catches everyone off guard, I always forget type errors until CI fails.
划选高亮2026-07-18 13:11:08
原文高亮摘录
“Vite only performs transpilation on .ts files and does NOT perform type checking”
Whisper 随想笔记
So does that mean I need to add tsc separately or is my IDE enough?
划选高亮2026-07-18 10:17:08
原文高亮摘录
“Native ES imports do not support bare module imports”
Whisper 随想笔记
I remember hitting this wall with a vanilla JS project once. Painful.
划选高亮2026-07-18 10:08:08
原文高亮摘录
“Native ES imports do not support bare module imports”
Whisper 随想笔记
Bare imports are so convenient though, annoying they don't just work.
划选高亮2026-07-18 09:59:08
原文高亮摘录
“Native ES imports do not support bare module imports”
Whisper 随想笔记
So that's why we need bundlers in the first place, huh.
划选高亮2026-07-17 10:17:02
原文高亮摘录
“During development, Vite assumes that a modern browser is used.”
Whisper 随想笔记
Guess that means I can't test on IE11 without extra setup, but who cares about IE in 2025 anyway?
划选高亮2026-07-17 10:08:02
原文高亮摘录
“During development, Vite assumes that a modern browser is used.”
Whisper 随想笔记
This is why I love Vite — no more polyfill soup locally, just ship modern and fix prod.
划选高亮2026-07-17 09:59:02
原文高亮摘录
“During development, Vite assumes that a modern browser is used.”
Whisper 随想笔记
So if someone's stuck on an old browser, dev mode just breaks for them? Good to know.