diff --git a/packages/unplugin-typia/src/core/typia.ts b/packages/unplugin-typia/src/core/typia.ts index 0f9c5091..92948f4d 100644 --- a/packages/unplugin-typia/src/core/typia.ts +++ b/packages/unplugin-typia/src/core/typia.ts @@ -115,7 +115,7 @@ async function getProgramAndSource( ); const host = ts.createCompilerHost(compilerOptions); - if (aliases && aliases.length) { + if (aliases != null && aliases.length > 0) { host.resolveModuleNameLiterals = (moduleLiterals, containingFile, _, options) => { return moduleLiterals.map((lit) => { let module = ts.resolveModuleName(lit.text, containingFile, options, host, host.getModuleResolutionCache?.());