콘텐츠로 이동

loadIdentifiedConfig

loadIdentifiedConfig(w, env?): Promise<UserConfig>

Defined in: core/src/workspace.ts:267

식별된 entry 의 config 를 디스크에서 로드. path/glob 은 findConfigPath 로 cwd 안의 zntc.config.* 자동 탐색 후 loadConfig (extends 처리, 함수형 호출 포함). inline 은 이미 갖고 있는 inlineConfig 그대로.

비싸다 — TS config 면 NAPI transpile + tmp .mjs write/import/unlink. 필터링된 entry 에 대해서만 호출하는 것을 권장 (identifyWorkspaceEntriesfilterWorkspaces → 이 함수).

IdentifiedWorkspace

식별된 워크스페이스 entry

ConfigEnv

loadConfig 에 전달할 함수형 config 컨텍스트

Promise<UserConfig>

entry 의 config (inline 또는 디스크 로드 결과). config 파일 없으면 빈 객체 {}.