Title: `export {...}` doesn't work with ES6 target and non-ES6 modules · Issue #5175 · microsoft/TypeScript · GitHub
Open Graph Title: `export {...}` doesn't work with ES6 target and non-ES6 modules · Issue #5175 · microsoft/TypeScript
X Title: `export {...}` doesn't work with ES6 target and non-ES6 modules · Issue #5175 · microsoft/TypeScript
Description: In #4811 we enabled generating code for ES6 with non-ES6 modules (which, for example, is useful when targeting Node.js v4). This work didn't properly handle export {...} declarations. Compile the following with -t es6 -m commonjs: export...
Open Graph Description: In #4811 we enabled generating code for ES6 with non-ES6 modules (which, for example, is useful when targeting Node.js v4). This work didn't properly handle export {...} declarations. Compile the f...
X Description: In #4811 we enabled generating code for ES6 with non-ES6 modules (which, for example, is useful when targeting Node.js v4). This work didn't properly handle export {...} declarations. Compile t...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/5175
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`export {...}` doesn't work with ES6 target and non-ES6 modules","articleBody":"In #4811 we enabled generating code for ES6 with non-ES6 modules (which, for example, is useful when targeting Node.js v4). This work didn't properly handle `export {...}` declarations.\n\nCompile the following with `-t es6 -m commonjs`:\n\n``` typescript\nexport function foo() { }\nfunction bar() { }\nexport { bar };\n```\n\nExpected output is:\n\n``` javascript\nfunction foo() { }\nexports.foo = foo;\nfunction bar() { }\nexports.bar = bar;\n```\n\nActual output is:\n\n``` javascript\nfunction foo() { }\nexports.foo = foo;\nfunction bar() { }\n```\n\nI will be putting up a fix for the problem shortly.\n","author":{"url":"https://github.com/ahejlsberg","@type":"Person","name":"ahejlsberg"},"datePublished":"2015-10-08T18:13:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5175/TypeScript/issues/5175"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:13c9f664-6995-40d7-f400-f07b69858fce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A234:1B5BAE:E91327:13F2C53:6A62CE13 |
| html-safe-nonce | 7076bdaccf3df2302ee4180cbd62ed4b0dda6b418855358cfca4febaac5caef4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjM0OjFCNUJBRTpFOTEzMjc6MTNGMkM1Mzo2QTYyQ0UxMyIsInZpc2l0b3JfaWQiOiI4NjE2MTE0MzM1MDA5Mzk0MTk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2cca2b3ca56afc0d0f6fb2db23b672946ccb6b6e42e646e16424431bc01f102f |
| hovercard-subject-tag | issue:110511340 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/5175/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ea6f279d100eac4901003678da6d11a2902efc43ec4dd3883a225dcbe5a0901/microsoft/TypeScript/issues/5175 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ea6f279d100eac4901003678da6d11a2902efc43ec4dd3883a225dcbe5a0901/microsoft/TypeScript/issues/5175 |
| og:image:alt | In #4811 we enabled generating code for ES6 with non-ES6 modules (which, for example, is useful when targeting Node.js v4). This work didn't properly handle export {...} declarations. Compile the f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ahejlsberg |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width