CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 20:56:44 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/"83faf860cc6597a6a3ff5c603cc265ce"
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=7Jp2p1yrs%2FVQmDYhrnRpjms%2FIW59GbUsJakK7BrpwvPHdg1WOZRQiyGGhSoY6YGxv%2FpCZ7anEesj9y%2FG057%2F30R6ae9meqzq2nIYm4PS5p66JndIIKd3WaJWwez0DcRpVlqMyqlhoeApifBgUDbP6TVDU8c65TYxuHBYWDKq2V45HkvGelH69W8AqPkoMRnvoUdlLSSTOWf9yiwjo56Xct6MuKIgD9arTZC026Kp5gCP9vTyMxCl%2FEBIM6LXyZhhNil3j%2Fk6QO2nZ6BILEdaWw%3D%3D--IkKxfvo%2FoUJQsniI--4gioAhhaPPu3adrZ4UR7xg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1887767054.1752872203; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 20:56:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 20:56:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 879E:1AA78F:174225:1E4465:687AB50B
Add support for --noEmitHelpers flag · microsoft/TypeScript@76fa4b8 · GitHub
committed
Copy file name to clipboardExpand all lines: bin/typescriptServices.d.ts
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts
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 76fa4b8

James Whitney
Add support for --noEmitHelpers flag
This PR is a Work In Progress that addresses multiple `__extends`
being output as described in #1350: Multiple `__extends` being output
when `--module amd` is set.
The issue still exists as of `v1.5.0 - f53e6a8`.
Apparently a fix was created for this in #1356 but according to #2009, a
[comment](#2009 (comment))
later indicated that this was never merged in.
Further conversation continued in #2487 but did not yield any result. I
refer to my earlier recommendation in #1350.
> My question is this, would the TypeScript team be open to a flag that
> can be passed to tsc that will generate something like the following
> ```ts
> define(["require", "exports", "__extends", './mammal'], function (require, exports, __extends, Mammal) {
> var Human = (function (_super) {
> __extends(Human, _super);
> function Human() {
> _super.apply(this, arguments);
> }
> return Human;
> })(Mammal);
> return Human;
> });
> ```
To continue with the naming convention I have chosen the flag
`--noEmitHelpers`.1 parent 64f3798 commit 76fa4b8Copy full SHA for 76fa4b8
File tree
Expand file treeCollapse file tree
10 files changed
+80
-16
lines changedFilter options
- bin
- src
- compiler
- harness
- tests
- baselines/reference
- cases/compiler
Expand file treeCollapse file tree
10 files changed
+80
-16
lines changed+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1087 | 1087 |
| |
1088 | 1088 |
| |
1089 | 1089 |
| |
| 1090 | + | |
1090 | 1091 |
| |
1091 | 1092 |
| |
1092 | 1093 |
| |
|
bin/typescriptServices.d.ts
Copy file name to clipboardExpand all lines: bin/typescriptServices.d.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1087 | 1087 |
| |
1088 | 1088 |
| |
1089 | 1089 |
| |
| 1090 | + | |
1090 | 1091 |
| |
1091 | 1092 |
| |
1092 | 1093 |
| |
|
src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 |
| |
75 | 79 |
| |
76 | 80 |
| |
|
+27-15Lines changed: 27 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5487 | 5487 |
| |
5488 | 5488 |
| |
5489 | 5489 |
| |
| 5490 | + | |
| 5491 | + | |
| 5492 | + | |
5490 | 5493 |
| |
5491 | 5494 |
| |
5492 | 5495 |
| |
| |||
5496 | 5499 |
| |
5497 | 5500 |
| |
5498 | 5501 |
| |
| 5502 | + | |
| 5503 | + | |
| 5504 | + | |
5499 | 5505 |
| |
5500 | 5506 |
| |
5501 | 5507 |
| |
| |||
5614 | 5620 |
| |
5615 | 5621 |
| |
5616 | 5622 |
| |
5617 |
| - | |
5618 |
| - | |
5619 |
| - | |
5620 |
| - | |
5621 |
| - | |
5622 |
| - | |
5623 | 5623 |
| |
5624 |
| - | |
5625 |
| - | |
5626 |
| - | |
5627 |
| - | |
| 5624 | + | |
| 5625 | + | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
| 5633 | + | |
| 5634 | + | |
| 5635 | + | |
| 5636 | + | |
| 5637 | + | |
| 5638 | + | |
| 5639 | + | |
| 5640 | + | |
| 5641 | + | |
| 5642 | + | |
| 5643 | + | |
| 5644 | + | |
5628 | 5645 |
| |
5629 |
| - | |
5630 |
| - | |
5631 | 5646 |
| |
5632 |
| - | |
5633 |
| - | |
5634 |
| - | |
5635 | 5647 |
| |
5636 | 5648 |
| |
5637 | 5649 |
| |
|
+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1657 | 1657 |
| |
1658 | 1658 |
| |
1659 | 1659 |
| |
| 1660 | + | |
1660 | 1661 |
| |
1661 | 1662 |
| |
1662 | 1663 |
| |
|
+5-1Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
990 | 990 |
| |
991 | 991 |
| |
992 | 992 |
| |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
993 | 997 |
| |
994 | 998 |
| |
995 | 999 |
| |
| |||
1477 | 1481 |
| |
1478 | 1482 |
| |
1479 | 1483 |
| |
1480 |
| - | |
| 1484 | + | |
1481 | 1485 |
| |
1482 | 1486 |
| |
1483 | 1487 |
| |
|
tests/baselines/reference/noEmitHelpers.js
Copy file name to clipboard+19Lines changed: 19 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 | + |
tests/baselines/reference/noEmitHelpers.symbols
Copy file name to clipboard+9Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + |
tests/baselines/reference/noEmitHelpers.types
Copy file name to clipboard+9Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + |
tests/cases/compiler/noEmitHelpers.ts
Copy file name to clipboard+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + |
You can’t perform that action at this time.
0 commit comments