Commit 11b1501
committed
Do not process library reference directives with noLib set.
When a user sets `noLib`, this indicates that they will supply their own
list of `lib*.d.ts` files as part of input sources. In this situation,
TypeScript should not try to resolve library reference directives.
This avoids a problem where TypeScript loads a file that e.g. contains
`/// <reference lib="es2015.symbol"/>`. Previously, TypeScript would use
its builtin ts.libMap and attempt to load builtin libraries from the
TypeScript installation, instead of respecting the user-supplied set of
libraries.1 parent aba0b70 commit 11b1501
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2227 | 2227 | | |
2228 | 2228 | | |
2229 | 2229 | | |
2230 | | - | |
2231 | | - | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
2232 | 2233 | | |
2233 | 2234 | | |
2234 | 2235 | | |
| |||
2315 | 2316 | | |
2316 | 2317 | | |
2317 | 2318 | | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
2318 | 2322 | | |
2319 | | - | |
2320 | 2323 | | |
2321 | 2324 | | |
2322 | 2325 | | |
| |||
0 commit comments