Title: Typings for the `main` and `browser` property in package.json · Issue #29128 · microsoft/TypeScript · GitHub
Open Graph Title: Typings for the `main` and `browser` property in package.json · Issue #29128 · microsoft/TypeScript
X Title: Typings for the `main` and `browser` property in package.json · Issue #29128 · microsoft/TypeScript
Description: Search Terms package.json typescript browser main isomorphic multiple typings Suggestion I have asked a question on StackOverflow (https://stackoverflow.com/questions/53847688/types-field-in-package-json-for-browser-and-main-field), but ...
Open Graph Description: Search Terms package.json typescript browser main isomorphic multiple typings Suggestion I have asked a question on StackOverflow (https://stackoverflow.com/questions/53847688/types-field-in-packag...
X Description: Search Terms package.json typescript browser main isomorphic multiple typings Suggestion I have asked a question on StackOverflow (https://stackoverflow.com/questions/53847688/types-field-in-packag...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/29128
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typings for the `main` and `browser` property in package.json","articleBody":"## Search Terms\r\npackage.json typescript browser main isomorphic multiple typings\r\n\r\n## Suggestion\r\nI have asked a question on StackOverflow (https://stackoverflow.com/questions/53847688/types-field-in-package-json-for-browser-and-main-field), but I have not gotten any reactions and now I'm wondering if it is at all possible. Hence a feature request.\r\n\r\n## Use Cases\r\nI have build an isomorphic lib, to be used in node and the browser (HuygensING/xmlio). NPM has a solution for that, using the `main` and `browser` properties in package.json. But, there is only one `typings` property. How to specify two different typings? One for the browser and one for node?\r\n\r\n","author":{"url":"https://github.com/Gijsjan","@type":"Person","name":"Gijsjan"},"datePublished":"2018-12-22T17:19:00Z","url":"https://github.com/microsoft/TypeScript/issues/29128"}
| 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:d010642a-e446-fdcf-5deb-a4c457c81b50 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F7A:9393C:35AECE:47A29B:6B04B994 |
| html-safe-nonce | 0aca59a4657c4e089db2db879b6abe3912f131303050745d5d780cbd62aa3e49 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjdBOjkzOTNDOjM1QUVDRTo0N0EyOUI6NkIwNEI5OTQiLCJ2aXNpdG9yX2lkIjoiNDkxODMwMTQ1OTE1MTYzMjc4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 81a5c89b9a12c767837aeb3f8561fc76c20d1d5f6122d5023b27bf0a4ebc1643 |
| hovercard-subject-tag | issue:393689316 |
| 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/29128/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2fe68ef1c16046e77d613b36af57a1477b361df3bc71f86cfec412e9c286320b/microsoft/TypeScript/issues/29128 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2fe68ef1c16046e77d613b36af57a1477b361df3bc71f86cfec412e9c286320b/microsoft/TypeScript/issues/29128 |
| og:image:alt | Search Terms package.json typescript browser main isomorphic multiple typings Suggestion I have asked a question on StackOverflow (https://stackoverflow.com/questions/53847688/types-field-in-packag... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Gijsjan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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