mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 17:30:04 -05:00
Fix #9173: clear out lib and types before creating a program in transpileModule
This commit is contained in:
@@ -2001,6 +2001,10 @@ namespace ts {
|
||||
// so pass --noLib to avoid reporting a file not found error.
|
||||
options.noLib = true;
|
||||
|
||||
// Clear out the lib and types option as well
|
||||
options.lib = undefined;
|
||||
options.types = undefined;
|
||||
|
||||
// We are not doing a full typecheck, we are not resolving the whole context,
|
||||
// so pass --noResolve to avoid reporting missing file errors.
|
||||
options.noResolve = true;
|
||||
|
||||
Reference in New Issue
Block a user