Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ isValidJsDeclareName
Function
isValidJsDeclareName
packages/vite/src/node/plugins/wasm.ts:360–362 ·
view source on GitHub ↗
(name: string)
Source
from the content-addressed store, hash-verified
358
])
359
360
function
isValidJsDeclareName(name: string): boolean {
361
return
!RESERVED_WORDS.has(name) && VALID_JS_IDENTIFIER.test(name)
362
}
Callers
1
generateGlueCode
Function · 0.85
Calls
1
has
Method · 0.80
Tested by
no test coverage detected