CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 06:00:35 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/"656638645a5fc0632073246e3367d464"
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=vyKNe23nQBYDAxYbpdwd7Pt1EhTGgKq30woFvcU8VJCKRF6wouzvLva1ZRiC1WmleVscZq11sWTf2xAZV%2FfhX7%2FjZ4jLH%2BIx%2F3GfarjmpmBhiN3UnuCZgATt3%2BN0Cj7U%2Bsgcfj4mqwJpBiF9AOyELwKtERg7UppTLTnTEYVVIX5IGG9k7zSsEqihHzGpIwTnWAA29ub5TzPHm06Q1Ou9yIUCvWK3gsaTyOJLc8OnWoNyU5dPCiClYI4un2tB%2BnyZ7JgMPHHT33fGmgee2VUbxQ%3D%3D--F%2F2KaPrF46AsBfTJ--WjLLEwVoKuIkOBOLoDD3mA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1561755849.1752904833; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 06:00:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 06:00:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E00C:1A6C04:35A814:4AFE2E:687B3481
Add `--preserveValueImports` (#44619) · microsoft/TypeScript@8610ff5 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/transformers/ts.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 8610ff5
authored
Add
* Add compiler option
* Require es2015+
* Do not elide any imports or exports in preserve-exact
* Add errors for writing imports/exports that reference elided names
* Improve diagnostics wording
* Update API baselines
* Redo as noEraslingImportedNames
* Update option category
* Update baselines
* Lint
* Fix up transformer comments
* Fix errors from merge
* Update other error code baseline
* Rename to "preserveValueImports"
* Clean up, reword diagnostics
* Update API baselines
* Update other baseline affected by error message reword
* Update tsconfig baselines
* Add debug assertion instead of !--preserveValueImports
(#44619)1 parent b9eeb74 commit 8610ff5Copy full SHA for 8610ff5
File tree
Expand file treeCollapse file tree
55 files changed
+1367
-40
lines changedFilter options
- src/compiler
- transformers
- tests
- baselines/reference
- api
- showConfig/Shows tsconfig for single option/preserveValueImports
- tsConfig
- Default initialized TSConfig
- Initialized TSConfig with advanced options
- Initialized TSConfig with boolean value compiler options
- Initialized TSConfig with enum value compiler options
- Initialized TSConfig with files options
- Initialized TSConfig with incorrect compiler option value
- Initialized TSConfig with incorrect compiler option
- Initialized TSConfig with list compiler options with enum value
- Initialized TSConfig with list compiler options
- tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit
- cases
- compiler
- conformance/externalModules/typeOnly
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
55 files changed
+1367
-40
lines changed+62-15Lines changed: 62 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2198 | 2198 |
| |
2199 | 2199 |
| |
2200 | 2200 |
| |
2201 |
| - | |
2202 |
| - | |
2203 |
| - | |
2204 | 2201 |
| |
2205 |
| - | |
| 2202 | + | |
2206 | 2203 |
| |
2207 |
| - | |
| 2204 | + | |
| 2205 | + | |
2208 | 2206 |
| |
2209 | 2207 |
| |
2210 | 2208 |
| |
2211 | 2209 |
| |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
2212 | 2220 |
| |
2213 | 2221 |
| |
2214 | 2222 |
| |
| |||
38813 | 38821 |
| |
38814 | 38822 |
| |
38815 | 38823 |
| |
38816 |
| - | |
38817 | 38824 |
| |
38818 |
| - | |
38819 |
| - | |
38820 |
| - | |
| 38825 | + | |
38821 | 38826 |
| |
38822 |
| - | |
| 38827 | + | |
| 38828 | + | |
| 38829 | + | |
| 38830 | + | |
| 38831 | + | |
| 38832 | + | |
| 38833 | + | |
| 38834 | + | |
| 38835 | + | |
| 38836 | + | |
| 38837 | + | |
| 38838 | + | |
| 38839 | + | |
| 38840 | + | |
| 38841 | + | |
| 38842 | + | |
| 38843 | + | |
| 38844 | + | |
| 38845 | + | |
| 38846 | + | |
| 38847 | + | |
| 38848 | + | |
| 38849 | + | |
| 38850 | + | |
| 38851 | + | |
| 38852 | + | |
| 38853 | + | |
| 38854 | + | |
| 38855 | + | |
| 38856 | + | |
| 38857 | + | |
| 38858 | + | |
| 38859 | + | |
| 38860 | + | |
| 38861 | + | |
| 38862 | + | |
| 38863 | + | |
| 38864 | + | |
| 38865 | + | |
| 38866 | + | |
38823 | 38867 |
| |
38824 | 38868 |
| |
38825 | 38869 |
| |
| |||
40600 | 40644 |
| |
40601 | 40645 |
| |
40602 | 40646 |
| |
40603 |
| - | |
| 40647 | + | |
40604 | 40648 |
| |
40605 | 40649 |
| |
40606 | 40650 |
| |
40607 | 40651 |
| |
40608 |
| - | |
40609 |
| - | |
| 40652 | + | |
| 40653 | + | |
40610 | 40654 |
| |
40611 | 40655 |
| |
40612 | 40656 |
| |
| |||
40615 | 40659 |
| |
40616 | 40660 |
| |
40617 | 40661 |
| |
40618 |
| - | |
| 40662 | + | |
40619 | 40663 |
| |
40620 | 40664 |
| |
40621 | 40665 |
| |
| |||
40632 | 40676 |
| |
40633 | 40677 |
| |
40634 | 40678 |
| |
40635 |
| - | |
| 40679 | + | |
| 40680 | + | |
| 40681 | + | |
| 40682 | + | |
40636 | 40683 |
| |
40637 | 40684 |
| |
40638 | 40685 |
| |
|
src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts+9-1Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
571 | 571 |
| |
572 | 572 |
| |
573 | 573 |
| |
574 |
| - | |
| 574 | + | |
575 | 575 |
| |
576 | 576 |
| |
577 | 577 |
| |
| |||
1169 | 1169 |
| |
1170 | 1170 |
| |
1171 | 1171 |
| |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1172 | 1180 |
| |
1173 | 1181 |
| |
1174 | 1182 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+20Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1372 | 1372 |
| |
1373 | 1373 |
| |
1374 | 1374 |
| |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1375 | 1391 |
| |
1376 | 1392 |
| |
1377 | 1393 |
| |
| |||
3910 | 3926 |
| |
3911 | 3927 |
| |
3912 | 3928 |
| |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
3913 | 3933 |
| |
3914 | 3934 |
| |
3915 | 3935 |
| |
|
+7-3Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3305 | 3305 |
| |
3306 | 3306 |
| |
3307 | 3307 |
| |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
3308 | 3312 |
| |
3309 | 3313 |
| |
3310 | 3314 |
| |
| |||
3575 | 3579 |
| |
3576 | 3580 |
| |
3577 | 3581 |
| |
3578 |
| - | |
| 3582 | + | |
3579 | 3583 |
| |
3580 | 3584 |
| |
3581 | 3585 |
| |
| |||
3590 | 3594 |
| |
3591 | 3595 |
| |
3592 | 3596 |
| |
3593 |
| - | |
| 3597 | + | |
3594 | 3598 |
| |
3595 | 3599 |
| |
3596 | 3600 |
| |
| |||
3616 | 3620 |
| |
3617 | 3621 |
| |
3618 | 3622 |
| |
3619 |
| - | |
| 3623 | + | |
3620 | 3624 |
| |
3621 | 3625 |
| |
3622 | 3626 |
| |
|
src/compiler/transformers/ts.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/ts.ts+17-15Lines changed: 17 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2791 | 2791 |
| |
2792 | 2792 |
| |
2793 | 2793 |
| |
2794 |
| - | |
| 2794 | + | |
2795 | 2795 |
| |
2796 | 2796 |
| |
2797 | 2797 |
| |
| |||
2821 | 2821 |
| |
2822 | 2822 |
| |
2823 | 2823 |
| |
2824 |
| - | |
| 2824 | + | |
2825 | 2825 |
| |
2826 | 2826 |
| |
2827 | 2827 |
| |
2828 | 2828 |
| |
2829 |
| - | |
2830 |
| - | |
2831 |
| - | |
| 2829 | + | |
2832 | 2830 |
| |
2833 |
| - | |
| 2831 | + | |
2834 | 2832 |
| |
2835 | 2833 |
| |
2836 | 2834 |
| |
2837 | 2835 |
| |
2838 | 2836 |
| |
2839 |
| - | |
| 2837 | + | |
2840 | 2838 |
| |
2841 | 2839 |
| |
2842 | 2840 |
| |
2843 | 2841 |
| |
2844 | 2842 |
| |
2845 | 2843 |
| |
2846 |
| - | |
| 2844 | + | |
2847 | 2845 |
| |
2848 | 2846 |
| |
2849 | 2847 |
| |
| |||
2853 | 2851 |
| |
2854 | 2852 |
| |
2855 | 2853 |
| |
2856 |
| - | |
| 2854 | + | |
2857 | 2855 |
| |
2858 | 2856 |
| |
2859 | 2857 |
| |
2860 | 2858 |
| |
2861 |
| - | |
2862 |
| - | |
| 2859 | + | |
2863 | 2860 |
| |
2864 | 2861 |
| |
2865 | 2862 |
| |
| |||
2876 | 2873 |
| |
2877 | 2874 |
| |
2878 | 2875 |
| |
2879 |
| - | |
2880 |
| - | |
| 2876 | + | |
2881 | 2877 |
| |
2882 | 2878 |
| |
2883 | 2879 |
| |
| |||
2950 | 2946 |
| |
2951 | 2947 |
| |
2952 | 2948 |
| |
2953 |
| - | |
| 2949 | + | |
2954 | 2950 |
| |
2955 | 2951 |
| |
2956 | 2952 |
| |
| |||
2967 | 2963 |
| |
2968 | 2964 |
| |
2969 | 2965 |
| |
2970 |
| - | |
| 2966 | + | |
2971 | 2967 |
| |
2972 | 2968 |
| |
2973 | 2969 |
| |
| |||
3358 | 3354 |
| |
3359 | 3355 |
| |
3360 | 3356 |
| |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
3361 | 3363 |
| |
3362 | 3364 |
|
+10-1Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3109 | 3109 |
| |
3110 | 3110 |
| |
3111 | 3111 |
| |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
3112 | 3120 |
| |
3113 | 3121 |
| |
3114 | 3122 |
| |
| |||
6057 | 6065 |
| |
6058 | 6066 |
| |
6059 | 6067 |
| |
| 6068 | + | |
6060 | 6069 |
| |
6061 | 6070 |
| |
6062 | 6071 |
| |
| |||
6150 | 6159 |
| |
6151 | 6160 |
| |
6152 | 6161 |
| |
6153 |
| - | |
| 6162 | + | |
6154 | 6163 |
| |
6155 | 6164 |
| |
6156 | 6165 |
| |
|
src/compiler/utilitiesPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1126 | 1126 |
| |
1127 | 1127 |
| |
1128 | 1128 |
| |
1129 |
| - | |
| 1129 | + | |
1130 | 1130 |
| |
1131 | 1131 |
| |
1132 | 1132 |
| |
|
You can’t perform that action at this time.
0 commit comments