CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 01:21:52 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/"e19bcce8d669bde07bb74a8b4a312972"
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=FGZM0CF8wmAE0ms2C9HftJn6wqoyTE0KCqlpO2kyjo9Chpcb%2Fhxd9l4BQy%2Bpy4UOkbJwVVFvDahll49%2Fz95MKzKEu4DlZ1BY3CkQ8l7kxn7dUq4r4oYjxVEGXXe8hxxadub%2FR8K%2FzDzul%2BRsopuL2aBaO0GC%2F2Wy1GpuSW4yjjB9I3o39rakoEjgdPDoqCRIjqPCHL5Tx0fI%2BM5x5HV72wpyNdbcDRKifax7nTLHYqh%2BovNbIpCGSTKVtDMUOuughPBYBS15uo%2Fb9byAX4GrsQ%3D%3D--%2FWKSCEsaWFpoAkGE--Kz7U09VNoHbm7mwwxxnC7g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.465458698.1752888110; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 01:21:50 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 01:21:50 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DCEE:10987:267735:35DAC4:687AF32E
Use getters to define live export bindings refresh (#35967) · microsoft/TypeScript@65e7acc · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/transformer.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/module/module.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/ambientShorthand_reExport.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/typescript.d.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/commentsOnRequireStatement.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/constEnumPreserveEmitReexport.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/declarationEmitExportDeclaration.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 65e7acc
Use getters to define live export bindings refresh (#35967)
* use getters to define live export bindings
* fix scoping in export* helper
* Object.defineProperty cannot be used in ES3 target
* Accept changed baselines
* Use function expression, not arrow function
* Update importStarHelper to match export helper in binding-making
* Fix whitespace
* Adjust whitespace in edited helpers
* Use new helper for setting bindings, use unscoped __exportStar helper for exports so helpers get reused more
* Accept updated baselines
* Use __createBinding for individual reexports when target is es3
* Remove unneeded type assertion
* Singeline the helpers
* Add check for createBinding helper, accept updated baselines with shortened helper
Co-authored-by: Michael Rawlings <mirawlings@ebay.com>1 parent 7a3b6b4 commit 65e7accCopy full SHA for 65e7acc
File tree
Expand file treeCollapse file tree
106 files changed
+1480
-426
lines changedFilter options
- src/compiler
- transformers/module
- tests
- baselines/reference
- api
- transformApi
- tsbuild
- demo/initial-build
- inferredTypeFromTransitiveModule/initial-build
- sample1/incremental-declaration-changes
- watchMode/demo
- tscWatch
- emitAndErrorUpdates
- assumeChangesOnlyAffectDirectDependenciesAndD/updates-errors-when-file-transitively-exported-file-changes
- assumeChangesOnlyAffectDirectDependencies/updates-errors-when-file-transitively-exported-file-changes
- defaultAndD/updates-errors-when-file-transitively-exported-file-changes
- default/updates-errors-when-file-transitively-exported-file-changes
- isolatedModulesAndD/updates-errors-when-file-transitively-exported-file-changes
- isolatedModules/updates-errors-when-file-transitively-exported-file-changes
- programUpdates
- tsc/declarationEmit/initial-build
- cases/compiler
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
106 files changed
+1480
-426
lines changed+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33450 | 33450 |
| |
33451 | 33451 |
| |
33452 | 33452 |
| |
| 33453 | + | |
| 33454 | + | |
| 33455 | + | |
| 33456 | + | |
33453 | 33457 |
| |
33454 | 33458 |
| |
33455 | 33459 |
| |
| |||
35661 | 35665 |
| |
35662 | 35666 |
| |
35663 | 35667 |
| |
| 35668 | + | |
| 35669 | + | |
35664 | 35670 |
| |
35665 | 35671 |
| |
35666 | 35672 |
| |
|
src/compiler/transformer.ts
Copy file name to clipboardExpand all lines: src/compiler/transformer.ts+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
412 | 412 |
| |
413 | 413 |
| |
414 | 414 |
| |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
415 | 420 |
| |
416 | 421 |
| |
417 | 422 |
| |
|
src/compiler/transformers/module/module.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/module/module.ts+105-43Lines changed: 105 additions & 43 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 | 106 |
| |
112 | 107 |
| |
113 | 108 |
| |
| |||
435 | 430 |
| |
436 | 431 |
| |
437 | 432 |
| |
438 |
| - | |
439 |
| - | |
440 |
| - | |
441 |
| - | |
442 |
| - | |
443 | 433 |
| |
444 | 434 |
| |
445 | 435 |
| |
| |||
1001 | 991 |
| |
1002 | 992 |
| |
1003 | 993 |
| |
1004 |
| - | |
1005 |
| - | |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
1011 |
| - | |
1012 |
| - | |
1013 |
| - | |
1014 |
| - | |
1015 |
| - | |
1016 |
| - | |
1017 |
| - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1018 | 1022 |
| |
1019 | 1023 |
| |
1020 | 1024 |
| |
| |||
1343 | 1347 |
| |
1344 | 1348 |
| |
1345 | 1349 |
| |
1346 |
| - | |
| 1350 | + | |
1347 | 1351 |
| |
1348 | 1352 |
| |
1349 | 1353 |
| |
| |||
1453 | 1457 |
| |
1454 | 1458 |
| |
1455 | 1459 |
| |
1456 |
| - | |
| 1460 | + | |
1457 | 1461 |
| |
1458 | 1462 |
| |
1459 | 1463 |
| |
1460 | 1464 |
| |
1461 |
| - | |
| 1465 | + | |
1462 | 1466 |
| |
1463 | 1467 |
| |
1464 | 1468 |
| |
| |||
1476 | 1480 |
| |
1477 | 1481 |
| |
1478 | 1482 |
| |
1479 |
| - | |
1480 |
| - | |
| 1483 | + | |
| 1484 | + | |
1481 | 1485 |
| |
1482 | 1486 |
| |
1483 | 1487 |
| |
| |||
1518 | 1522 |
| |
1519 | 1523 |
| |
1520 | 1524 |
| |
1521 |
| - | |
1522 |
| - | |
| 1525 | + | |
| 1526 | + | |
1523 | 1527 |
| |
1524 | 1528 |
| |
1525 | 1529 |
| |
| |||
1535 | 1539 |
| |
1536 | 1540 |
| |
1537 | 1541 |
| |
1538 |
| - | |
| 1542 | + | |
1539 | 1543 |
| |
1540 |
| - | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
1541 | 1567 |
| |
1542 | 1568 |
| |
1543 | 1569 |
| |
| |||
1813 | 1839 |
| |
1814 | 1840 |
| |
1815 | 1841 |
| |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
1816 | 1875 |
| |
1817 |
| - | |
| 1876 | + | |
1818 | 1877 |
| |
1819 |
| - | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
1820 | 1882 |
| |
1821 |
| - | |
1822 |
| - | |
| 1883 | + | |
| 1884 | + | |
1823 | 1885 |
| |
1824 | 1886 |
| |
1825 | 1887 |
| |
1826 | 1888 |
| |
1827 |
| - | |
1828 |
| - | |
1829 |
| - | |
1830 |
| - | |
| 1889 | + | |
| 1890 | + | |
1831 | 1891 |
| |
1832 | 1892 |
| |
1833 | 1893 |
| |
| |||
1843 | 1903 |
| |
1844 | 1904 |
| |
1845 | 1905 |
| |
| 1906 | + | |
| 1907 | + | |
1846 | 1908 |
| |
1847 | 1909 |
| |
1848 | 1910 |
| |
1849 | 1911 |
| |
1850 |
| - | |
1851 |
| - | |
| 1912 | + | |
| 1913 | + | |
1852 | 1914 |
| |
1853 | 1915 |
| |
1854 | 1916 |
| |
|
+4-1Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5794 | 5794 |
| |
5795 | 5795 |
| |
5796 | 5796 |
| |
| 5797 | + | |
5797 | 5798 |
| |
5798 | 5799 |
| |
5799 | 5800 |
| |
| |||
5834 | 5835 |
| |
5835 | 5836 |
| |
5836 | 5837 |
| |
| 5838 | + | |
| 5839 | + | |
5837 | 5840 |
| |
5838 |
| - | |
| 5841 | + | |
5839 | 5842 |
| |
5840 | 5843 |
| |
5841 | 5844 |
| |
|
tests/baselines/reference/ambientShorthand_reExport.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/ambientShorthand_reExport.js+18-4Lines changed: 18 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 |
| |
22 | 29 |
| |
23 |
| - | |
| 30 | + | |
24 | 31 |
| |
25 | 32 |
| |
26 |
| - | |
27 |
| - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
28 | 42 |
| |
29 | 43 |
| |
30 |
| - | |
| 44 | + | |
31 | 45 |
| |
32 | 46 |
| |
33 | 47 |
| |
|
tests/baselines/reference/api/tsserverlibrary.d.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2972 | 2972 |
| |
2973 | 2973 |
| |
2974 | 2974 |
| |
| 2975 | + | |
2975 | 2976 |
| |
2976 | 2977 |
| |
2977 | 2978 |
| |
|
tests/baselines/reference/api/typescript.d.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/typescript.d.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2972 | 2972 |
| |
2973 | 2973 |
| |
2974 | 2974 |
| |
| 2975 | + | |
2975 | 2976 |
| |
2976 | 2977 |
| |
2977 | 2978 |
| |
|
tests/baselines/reference/commentsOnRequireStatement.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/commentsOnRequireStatement.js+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
| 38 | + |
tests/baselines/reference/constEnumPreserveEmitReexport.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/constEnumPreserveEmitReexport.js+8-1Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 |
| |
31 | 38 |
| |
32 |
| - | |
| 39 | + |
tests/baselines/reference/declarationEmitExportDeclaration.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/declarationEmitExportDeclaration.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
|
You can’t perform that action at this time.
0 commit comments