Title: Targetting ES2015 modules for current browsers not possible (ts:import "name" -> js:import "./name.js") · Issue #21389 · microsoft/TypeScript · GitHub
Open Graph Title: Targetting ES2015 modules for current browsers not possible (ts:import "name" -> js:import "./name.js") · Issue #21389 · microsoft/TypeScript
X Title: Targetting ES2015 modules for current browsers not possible (ts:import "name" -> js:import "./name.js") · Issue #21389 · microsoft/TypeScript
Description: I want to emit javascript with ES2015 modules. My tsconfig is "target": "es2017", "module": "es2015", ... Problem: Typescript expects import { Component, h, render } from "preact"; In my js files I need however import { Component, h, ren...
Open Graph Description: I want to emit javascript with ES2015 modules. My tsconfig is "target": "es2017", "module": "es2015", ... Problem: Typescript expects import { Component, h, render } from "preact"; In my js files I...
X Description: I want to emit javascript with ES2015 modules. My tsconfig is "target": "es2017", "module": "es2015", ... Problem: Typescript expects import { Component, h, ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/21389
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Targetting ES2015 modules for current browsers not possible (ts:import \"name\" -> js:import \"./name.js\")","articleBody":"I want to emit javascript with ES2015 modules. My tsconfig is\r\n\r\n \"target\": \"es2017\",\r\n \"module\": \"es2015\",\r\n ...\r\n\r\nProblem: Typescript expects \r\n\r\n import { Component, h, render } from \"preact\";\r\n\r\nIn my js files I need however \r\n\r\n import { Component, h, render } from \"./preact.js\";\r\n\r\nMaybe might origin from partial browser implementations. At least I could not find any way to work with import \"preact\" in typesript and emitting import \"./preact.js\" in js. \r\n\r\nIs there a way to get the \"./name.js\" for into emitted import statements? \r\nIf not, are there plans to appraoch the problem?\r\n","author":{"url":"https://github.com/urbanhop","@type":"Person","name":"urbanhop"},"datePublished":"2018-01-24T13:59:33Z","url":"https://github.com/microsoft/TypeScript/issues/21389"}
| 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:3349e67d-2fff-c3a9-2374-140cf65f71a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA72:18ADFF:946C37:C7F79C:6B04ACD6 |
| html-safe-nonce | 409d7438e2133f9b732ea7082bd992d83b135895ba54fdea41c8fd2006768f1f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTcyOjE4QURGRjo5NDZDMzc6QzdGNzlDOjZCMDRBQ0Q2IiwidmlzaXRvcl9pZCI6IjcwNjg5MjY2Mzk1MDU0NTIyNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 07c179d7cf5eda74d1d672f004038f2efce11c69e3f7e660b2f56b6903299987 |
| hovercard-subject-tag | issue:291218707 |
| 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/21389/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e217a4ccc6c1060be50d1201d653b3d7910276fc1302f02df6bf8a19ea1ecd33/microsoft/TypeScript/issues/21389 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e217a4ccc6c1060be50d1201d653b3d7910276fc1302f02df6bf8a19ea1ecd33/microsoft/TypeScript/issues/21389 |
| og:image:alt | I want to emit javascript with ES2015 modules. My tsconfig is "target": "es2017", "module": "es2015", ... Problem: Typescript expects import { Component, h, render } from "preact"; In my js files I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | urbanhop |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width