Title: decoratorMetadataEmit not compatible with Babel's 6-to-5 · Issue #2836 · microsoft/TypeScript · GitHub
Open Graph Title: decoratorMetadataEmit not compatible with Babel's 6-to-5 · Issue #2836 · microsoft/TypeScript
X Title: decoratorMetadataEmit not compatible with Babel's 6-to-5 · Issue #2836 · microsoft/TypeScript
Description: I believe it's expected that tsc -t es6 should be externally transpilable to ES5 (eg with Babel) See https://gist.github.com/alexeagle/24243fbb87dbd8bad6f1 Babel replaces the __decorate line this.__decorate with undefined.__decorate so t...
Open Graph Description: I believe it's expected that tsc -t es6 should be externally transpilable to ES5 (eg with Babel) See https://gist.github.com/alexeagle/24243fbb87dbd8bad6f1 Babel replaces the __decorate line this._...
X Description: I believe it's expected that tsc -t es6 should be externally transpilable to ES5 (eg with Babel) See https://gist.github.com/alexeagle/24243fbb87dbd8bad6f1 Babel replaces the __decorate line th...
Mail addresses
notifications@github.com
notifications@github.com
Opengraph URL: https://github.com/microsoft/TypeScript/issues/2836
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"decoratorMetadataEmit not compatible with Babel's 6-to-5","articleBody":"I believe it's expected that `tsc -t es6` should be externally transpilable to ES5 (eg with Babel)\n\nSee https://gist.github.com/alexeagle/24243fbb87dbd8bad6f1\n\nBabel replaces the __decorate line `this.__decorate` with `undefined.__decorate` so that gives a runtime error. `Uncaught TypeError: Cannot read property '__decorate' of undefined app_bin.js:7`\n\nNote I also tried this with Closure Compiler ES6->ES5, and had a different problem because of this line in the emit:\n`Object.defineProperty(App, \"name\", { value: \"App\", configurable: true });`\nin ES6 spec, new objects are configurable:true by default, but in mainline Chrome it is configurable:false by default so this is also a runtime error. For this case, it leads me to wonder if ES5->ES6 transpilers should be expected to translate API incompatibilities in addition to new ES6 syntax.\n","author":{"url":"https://github.com/alexeagle","@type":"Person","name":"alexeagle"},"datePublished":"2015-04-20T17:43:02Z","url":"https://github.com/microsoft/TypeScript/issues/2836"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4a8506a8-e0bf-1a70-fa86-031748655cdd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8174:E3C4F:B6A71C:E9F669:6B00FB74 |
| html-safe-nonce | 39fcb96f5c717f34fe83f76fa273bc093bb5591febeafb895ee302773b5d6f67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTc0OkUzQzRGOkI2QTcxQzpFOUY2Njk6NkIwMEZCNzQiLCJ2aXNpdG9yX2lkIjoiNTg5NjI3MDQ1MDY0MDE0NzA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1b8c63de4c46b7a752f0151da44ff48ab17c401ce72978bf19f78b4a110aed8c |
| hovercard-subject-tag | issue:69641781 |
| 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/2836/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f89cfe05e4014bed14e8845394675018cd8d4b7deeb917240130662014fe198/microsoft/TypeScript/issues/2836 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f89cfe05e4014bed14e8845394675018cd8d4b7deeb917240130662014fe198/microsoft/TypeScript/issues/2836 |
| og:image:alt | I believe it's expected that tsc -t es6 should be externally transpilable to ES5 (eg with Babel) See https://gist.github.com/alexeagle/24243fbb87dbd8bad6f1 Babel replaces the __decorate line this._... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexeagle |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width