René's URL Explorer Experiment


Title: Emit 'use strict' code for input defined via ES6 modules · Issue #3576 · microsoft/TypeScript · GitHub

Open Graph Title: Emit 'use strict' code for input defined via ES6 modules · Issue #3576 · microsoft/TypeScript

X Title: Emit 'use strict' code for input defined via ES6 modules · Issue #3576 · microsoft/TypeScript

Description: ES6 modules default to running the code in the module in the strict mode. When transpiling this input into ES5 the strict mode should be preserved. As of Typescript 1.5 beta this is not the case: input: export class Foo{} transpile with:...

Open Graph Description: ES6 modules default to running the code in the module in the strict mode. When transpiling this input into ES5 the strict mode should be preserved. As of Typescript 1.5 beta this is not the case: i...

X Description: ES6 modules default to running the code in the module in the strict mode. When transpiling this input into ES5 the strict mode should be preserved. As of Typescript 1.5 beta this is not the case: i...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/3576

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Emit 'use strict' code for input defined via ES6 modules","articleBody":"ES6 modules default to running the code in the module in the strict mode. When transpiling this input into ES5 the strict mode should be preserved.\n\nAs of Typescript 1.5 beta this is not the case:\n\ninput:\n\n```\nexport class Foo{}\n```\n\ntranspile with: `tsc --module commonjs test.ts`\n\nactual output:\n\n```\nvar Foo = (function () {\n    function Foo() {\n    }\n    return Foo;\n})();\nexports.Foo = Foo;\n```\n\nexpected output:\n\n```\n'use strict';\n\nvar Foo = (function () {\n    function Foo() {\n    }\n    return Foo;\n})();\nexports.Foo = Foo;\n```\n\nThe same issue affects output for amd and system module formats.\n","author":{"url":"https://github.com/IgorMinar","@type":"Person","name":"IgorMinar"},"datePublished":"2015-06-19T21:34:02Z","url":"https://github.com/microsoft/TypeScript/issues/3576"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dc7817be-3195-432c-0f53-8750b0267f05
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id976A:33444D:2CEB458:3BC10CC:6B01D0A7
html-safe-nonce29ef24a02646f28d9c8a82552373457036b9387b8734d2abfe1faec4b08db582
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzZBOjMzNDQ0RDoyQ0VCNDU4OjNCQzEwQ0M6NkIwMUQwQTciLCJ2aXNpdG9yX2lkIjoiODUzNzU4OTQzNTA2MjE0NTE5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac738e3e1add7660ac0fcb7aaed54ee9e66eca254bc2d88dee560c1e83b8cb3cc7
hovercard-subject-tagissue:89665638
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/3576/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2d7ae77796649d3d593614c90c0193ff8cb01b5c986b6085b438728923ce5361/microsoft/TypeScript/issues/3576
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2d7ae77796649d3d593614c90c0193ff8cb01b5c986b6085b438728923ce5361/microsoft/TypeScript/issues/3576
og:image:altES6 modules default to running the code in the module in the strict mode. When transpiling this input into ES5 the strict mode should be preserved. As of Typescript 1.5 beta this is not the case: i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameIgorMinar
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/3576#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F3576
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F3576
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/3576
Reloadhttps://github.com/microsoft/TypeScript/issues/3576
Reloadhttps://github.com/microsoft/TypeScript/issues/3576
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3576
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3576
Emit 'use strict' code for input defined via ES6 moduleshttps://github.com/microsoft/TypeScript/issues/3576#top
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 1.8https://github.com/microsoft/TypeScript/milestone/15
https://github.com/IgorMinar
Igor Minar (IgorMinar)https://github.com/IgorMinar
on Jun 19, 2015https://github.com/microsoft/TypeScript/issues/3576#issue-89665638
Nexthttps://github.com/microsoft/TypeScript/issues/3576?timeline_page=1
https://github.com/danquirk
Dan Quirk (danquirk)https://github.com/danquirk
on Jun 19, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-113650893
#1135https://github.com/microsoft/TypeScript/issues/1135
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jun 19, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-113659389
#1135https://github.com/microsoft/TypeScript/issues/1135
Igor Minar (@IgorMinar)https://github.com/IgorMinar
https://github.com/IgorMinar
Igor Minar (IgorMinar)https://github.com/IgorMinar
on Jun 19, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-113678133
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Jun 20, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-113694636
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jun 20, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-113714168
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Jun 20, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-113717698
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Aug 10, 2015https://github.com/microsoft/TypeScript/issues/3576#event-378449297
https://github.com/xLama
JCLama (xLama)https://github.com/xLama
on Aug 28, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-135858527
https://github.com/the-reality-engineer
The Reality Engineer (the-reality-engineer)https://github.com/the-reality-engineer
on Sep 30, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-144414375
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-strict-mode-codehttps://people.mozilla.org/~jorendorff/es6-draft.html#sec-strict-mode-code
https://github.com/the-reality-engineer
The Reality Engineer (the-reality-engineer)https://github.com/the-reality-engineer
on Sep 30, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-144424256
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Sep 30, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-144480046
Wesley Wigham (@weswigham)https://github.com/weswigham
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/the-reality-engineer
The Reality Engineer (the-reality-engineer)https://github.com/the-reality-engineer
on Sep 30, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-144482851
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Sep 30, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-144492418
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 30, 2015https://github.com/microsoft/TypeScript/issues/3576#issuecomment-144492910
#4963https://github.com/microsoft/TypeScript/issues/4963
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Nov 26, 2015https://github.com/microsoft/TypeScript/issues/3576#event-475112054
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jan 5, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-169012528
core/globalhttps://github.com/dojo/core/blob/6eeacfa1884be21fad1410401d8c312a65eb7313/src/global.ts
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Jan 5, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-169021206
Kitson Kelly (@kitsonk)https://github.com/kitsonk
http://stackoverflow.com/a/3277192/4386952http://stackoverflow.com/a/3277192/4386952
https://github.com/dasa
Dasa Paddock (dasa)https://github.com/dasa
on Jan 28, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-176480913
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 29, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-176509899
https://github.com/jkieboom
Jesse van den Kieboom (jkieboom)https://github.com/jkieboom
on Jan 29, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-176656979
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Jan 29, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-176673653
MDNhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode
https://github.com/dylans
Dylan Schiemann (dylans)https://github.com/dylans
on Jan 29, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-176746752
https://github.com/dasa
Dasa Paddock (dasa)https://github.com/dasa
on Feb 2, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-178328725
#6819https://github.com/microsoft/TypeScript/issues/6819
https://github.com/jeffreymorlan
jeffreymorlanhttps://github.com/jeffreymorlan
on Feb 2, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-178397108
https://github.com/dylans
Dylan Schiemann (dylans)https://github.com/dylans
on Feb 2, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-178530994
https://github.com/jeffreymorlan
jeffreymorlanhttps://github.com/jeffreymorlan
on Feb 2, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-178695244
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Feb 3, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-179140631
jeffreymorlanhttps://github.com/jeffreymorlan
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Feb 8, 2016https://github.com/microsoft/TypeScript/issues/3576#issuecomment-181233555
#6819https://github.com/microsoft/TypeScript/issues/6819
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/3576#event-1689603257
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/3576
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3576
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 1.8https://github.com/microsoft/TypeScript/milestone/15
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.