(compilerOptions: CompilerOptions, projectRoot: string): ImportResolver Create the default ImportResolver (TypeScript + tsconfig).
Uses ts.resolveModuleName against ts.sys directly β no ts.Program is
built. Identity is a fresh symbol per call, so each session that constructs
its own default gets a unique cache scope. Multiple sessions sharing one
resolver instance share the cache scope (correct, since resolver state is
shared too).
Falls back to appending .svelte when the bare specifier doesn't resolve β
lets .svelte imports work without polluting the consumer's tsconfig.
compilerOptions
parsed tsconfig (from loadTsconfig)
CompilerOptionsprojectRoot
absolute project root for the module-resolution cache
stringreturns
ImportResolver