CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 08:25:54 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"15767d83ceb89102834adb7e9767effd"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=CLWwjgYzOfsJKS4ycPjR50BTxhv2Fdkqaw%2BYgPul3qgE6HporON9vDP%2FCm5yA1563IO8f9LM12v8YFh1vX18ehCaBcIktFW6yYF1h8skmtcVwGE3FJ9N0o%2BBC4yeFCwRceKtJdBykATE5w6Y9HylCpf%2BqgRhWcmu07b2YQBH3FSqGalmvOMV3Jyy%2B9HunJTZrFfnzHSg8x4LfPvWdxXz7v84EMzkycJCl%2B7KStLf5TIBA8NNAa7AZd8b6aeZufV9OH4sJ6nw7v2O9tLwPKK0lg%3D%3D--imAlQ4uL0YknqlFI--gMIiHmP5Czrg7v8cg0O7pQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.888957709.1752913553; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 08:25:53 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 08:25:53 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D15A:AA839:295790:34ADB3:687B5691
Don't elide imports when transforming JS files (#50404) · microsoft/TypeScript@3014dec · GitHub
Copy file name to clipboardExpand all lines: src/compiler/transformers/ts.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/allowImportClausesToMergeWithTypes.js
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 3014dec
authored
Don't elide imports when transforming JS files (#50404)
* don't elide imports in JS files
* WIP: get rid of caching of resolved symbol, add transform tests
* get rid of caching only for resolver functions
* use getReferencedSymbol instead of getReferencedValueSymbol in module transform
* WIP: add reportErrors flag to resolveName
* Import transformations now work correctly
* don't emit diagnostics when looking up referenced symbol
* small fixes and get rid of unnecessary comments
* update tests
* clean up
* CR: use nameNotFoundMessage to decide whether to report errors in resolveName1 parent 57c7aa7 commit 3014decCopy full SHA for 3014dec
File tree
Expand file treeCollapse file tree
23 files changed
+783
-12
lines changedFilter options
- src/compiler
- transformers
- tests
- baselines/reference
- cases/compiler
Expand file treeCollapse file tree
23 files changed
+783
-12
lines changed+36-6Lines changed: 36 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1831 | 1831 |
| |
1832 | 1832 |
| |
1833 | 1833 |
| |
| 1834 | + | |
1834 | 1835 |
| |
1835 | 1836 |
| |
1836 | 1837 |
| |
| |||
1841 | 1842 |
| |
1842 | 1843 |
| |
1843 | 1844 |
| |
1844 |
| - | |
1845 |
| - | |
| 1845 | + | |
| 1846 | + | |
1846 | 1847 |
| |
1847 | 1848 |
| |
1848 | 1849 |
| |
| |||
2015 | 2016 |
| |
2016 | 2017 |
| |
2017 | 2018 |
| |
2018 |
| - | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
2019 | 2022 |
| |
2020 | 2023 |
| |
2021 | 2024 |
| |
| |||
2053 | 2056 |
| |
2054 | 2057 |
| |
2055 | 2058 |
| |
2056 |
| - | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
2057 | 2062 |
| |
2058 | 2063 |
| |
2059 | 2064 |
| |
| |||
2263 | 2268 |
| |
2264 | 2269 |
| |
2265 | 2270 |
| |
2266 |
| - | |
| 2271 | + | |
2267 | 2272 |
| |
2268 | 2273 |
| |
2269 | 2274 |
| |
| |||
43283 | 43288 |
| |
43284 | 43289 |
| |
43285 | 43290 |
| |
43286 |
| - | |
| 43291 | + | |
| 43292 | + | |
43287 | 43293 |
| |
43288 | 43294 |
| |
43289 | 43295 |
| |
| |||
43687 | 43693 |
| |
43688 | 43694 |
| |
43689 | 43695 |
| |
| 43696 | + | |
| 43697 | + | |
| 43698 | + | |
| 43699 | + | |
| 43700 | + | |
| 43701 | + | |
| 43702 | + | |
| 43703 | + | |
| 43704 | + | |
| 43705 | + | |
| 43706 | + | |
| 43707 | + | |
| 43708 | + | |
| 43709 | + | |
| 43710 | + | |
| 43711 | + | |
| 43712 | + | |
| 43713 | + | |
| 43714 | + | |
| 43715 | + | |
| 43716 | + | |
| 43717 | + | |
| 43718 | + | |
| 43719 | + | |
43690 | 43720 |
| |
43691 | 43721 |
| |
43692 | 43722 |
| |
|
src/compiler/transformers/ts.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/ts.ts+5-3Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2463 | 2463 |
| |
2464 | 2464 |
| |
2465 | 2465 |
| |
2466 |
| - | |
2467 |
| - | |
2468 |
| - | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
2469 | 2471 |
| |
2470 | 2472 |
| |
2471 | 2473 |
|
tests/baselines/reference/allowImportClausesToMergeWithTypes.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/allowImportClausesToMergeWithTypes.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
|
tests/baselines/reference/elidedJSImport1.errors.txt
Copy file name to clipboard+31Lines changed: 31 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + |
tests/baselines/reference/elidedJSImport1.js
Copy file name to clipboard+25Lines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + |
tests/baselines/reference/elidedJSImport1.symbols
Copy file name to clipboard+39Lines changed: 39 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + |
tests/baselines/reference/elidedJSImport1.types
Copy file name to clipboard+40Lines changed: 40 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + |
tests/baselines/reference/elidedJSImport2(module=commonjs).js
Copy file name to clipboard+83Lines changed: 83 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + |
tests/baselines/reference/elidedJSImport2(module=commonjs).symbols
Copy file name to clipboard+50Lines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + |
You can’t perform that action at this time.
0 commit comments