Title: Include conditional exports in package.json · Issue #31 · microsoft/FeatureManagement-JavaScript · GitHub
Open Graph Title: Include conditional exports in package.json · Issue #31 · microsoft/FeatureManagement-JavaScript
X Title: Include conditional exports in package.json · Issue #31 · microsoft/FeatureManagement-JavaScript
Description: Currently, we have main and module in the package.json which specify the entry point for cjs and esm. ref exports is supported by Node.js 12+ ref Note that exports will take precedence over the main field: https://nodejs.org/api/packages...
Open Graph Description: Currently, we have main and module in the package.json which specify the entry point for cjs and esm. ref exports is supported by Node.js 12+ ref Note that exports will take precedence over the mai...
X Description: Currently, we have main and module in the package.json which specify the entry point for cjs and esm. ref exports is supported by Node.js 12+ ref Note that exports will take precedence over the mai...
Opengraph URL: https://github.com/microsoft/FeatureManagement-JavaScript/issues/31
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Include conditional exports in package.json","articleBody":"Currently, we have `main` and `module` in the package.json which specify the entry point for cjs and esm. [ref](https://nodejs.org/api/packages.html#dual-commonjses-module-packages)\r\n\r\n`exports` is supported by Node.js 12+ [ref](https://nodejs.org/api/packages.html#conditional-exports)\r\n\r\nNote that `exports` will take precedence over the `main` field: https://nodejs.org/api/packages.html#main\r\n\r\nThe `exports` field can produce extra extensibility, for example, tools like webpack will know some specific fields. [ref](https://webpack.js.org/guides/package-exports/#target-environment)\r\n\r\nBTW, this is how azure sdk does: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-auth/package.json\r\nI prefer to follow azure sdk.","author":{"url":"https://github.com/zhiyuanliang-ms","@type":"Person","name":"zhiyuanliang-ms"},"datePublished":"2024-08-24T16:43:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/31/FeatureManagement-JavaScript/issues/31"}
| 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:bec8ea34-775a-3a5f-8196-3a66c757d216 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D906:D1074:24DF6F:335955:698DF61A |
| html-safe-nonce | fda543f1b1d8a94baaa90a9cb92fc17961f540edd9e2100e3f4631db212903b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTA2OkQxMDc0OjI0REY2RjozMzU5NTU6Njk4REY2MUEiLCJ2aXNpdG9yX2lkIjoiNDcyMDQyMDIwMjc1MDkwOTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 24fe3e2728a621bf42603a44b487001c3faf4ea813b7fbbe89aa76455d90c19a |
| hovercard-subject-tag | issue:2484716294 |
| 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/FeatureManagement-JavaScript/31/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7fc74c4d93136c4642a72ff398cb6bdb3327ebe6d1c636bdbc428f929668237/microsoft/FeatureManagement-JavaScript/issues/31 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7fc74c4d93136c4642a72ff398cb6bdb3327ebe6d1c636bdbc428f929668237/microsoft/FeatureManagement-JavaScript/issues/31 |
| og:image:alt | Currently, we have main and module in the package.json which specify the entry point for cjs and esm. ref exports is supported by Node.js 12+ ref Note that exports will take precedence over the mai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zhiyuanliang-ms |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae22ef6ad27c5aeb770c5acd314c5724055bb23a663877aafdaaa50ed317ba34 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/FeatureManagement-JavaScript git https://github.com/microsoft/FeatureManagement-JavaScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 738639264 |
| octolytics-dimension-repository_nwo | microsoft/FeatureManagement-JavaScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 738639264 |
| octolytics-dimension-repository_network_root_nwo | microsoft/FeatureManagement-JavaScript |
| 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 | e545f5becd5b3ce9b429b68c3f994ad93c680ddb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width