b6e8847967
When statically evaluating CommonJS code it is possible to find that we are looking for the declaration of an identifier that actually came from a typings file (rather than a CommonJS file). Previously, the CommonJS reflection host would always try to use a CommonJS specific algorithm for finding identifier declarations, but when the id is actually in a typings file this resulted in the returned declaration being the containing file of the declaration rather than the declaration itself. Now the CommonJS reflection host will check to see if the file containing the identifier is a typings file and use the appropriate stategy. (Note: This is the equivalent of #34356 but for CommonJS.) PR Close #35191 |
||
---|---|---|
.. | ||
commonjs_host_import_helper_spec.ts | ||
commonjs_host_spec.ts | ||
esm5_host_import_helper_spec.ts | ||
esm5_host_spec.ts | ||
esm2015_host_import_helper_spec.ts | ||
esm2015_host_spec.ts | ||
umd_host_import_helper_spec.ts | ||
umd_host_spec.ts | ||
util.ts |