Title: Consider removing unstable `"node:module".stripTypeScriptTypes` to reduce baseline SEA binary size · Issue #57744 · nodejs/node · GitHub
Open Graph Title: Consider removing unstable `"node:module".stripTypeScriptTypes` to reduce baseline SEA binary size · Issue #57744 · nodejs/node
X Title: Consider removing unstable `"node:module".stripTypeScriptTypes` to reduce baseline SEA binary size · Issue #57744 · nodejs/node
Description: I think it would be beneficial to consider not stabilizing stripTypeScriptTypes and instead require users to specify a dependency on swc or whatever library they wish. Reason: This enables Node single executable applications to stay smal...
Open Graph Description: I think it would be beneficial to consider not stabilizing stripTypeScriptTypes and instead require users to specify a dependency on swc or whatever library they wish. Reason: This enables Node sin...
X Description: I think it would be beneficial to consider not stabilizing stripTypeScriptTypes and instead require users to specify a dependency on swc or whatever library they wish. Reason: This enables Node sin...
Opengraph URL: https://github.com/nodejs/node/issues/57744
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider removing unstable `\"node:module\".stripTypeScriptTypes` to reduce baseline SEA binary size","articleBody":"I think it would be beneficial to consider not stabilizing `stripTypeScriptTypes` and instead require users to specify a dependency on swc or whatever library they wish.\n\n**Reason:** This enables Node single executable applications to stay small and not have every binary have a dependency on swc. Instead users can choose to increase their binary size by specifying a dependency only when they need it and not always.\n\nSure, current design constraints might mean it's currently always required, but in the future work could be done on Node to make this not the case. For example in Deno our single executable applications are custom smaller binaries that do not include swc and we do all the transpiling work up-front when compiling instead of at runtime.\n\nAn alternative to this could be making it opt-in to include this API in single executable applications, but overall I think it's much simpler to just require users to specify a dependency because this is a niche use case and also it makes code work the same way across different versions of Node.","author":{"url":"https://github.com/dsherret","@type":"Person","name":"dsherret"},"datePublished":"2025-04-04T14:45:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/57744/node/issues/57744"}
| 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:e0ac9775-e490-1ada-4a11-fc9e840bdd59 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84A6:18C74D:5063D7:6DFD9E:6A4D3D6A |
| html-safe-nonce | f4d17ad0bf14fb6f41709081aff89654c3318905e7558a73c75df8112ba69322 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEE2OjE4Qzc0RDo1MDYzRDc6NkRGRDlFOjZBNEQzRDZBIiwidmlzaXRvcl9pZCI6Ijc0OTk5NzU1NzkzMzE3MjI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0b4425792fd3049181d29b3ba92eeb19116dd997fa4b60e380a7d5a8beee5d3c |
| hovercard-subject-tag | issue:2972607471 |
| 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/nodejs/node/57744/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fec56b1125cbb8081e2421c0c3be72acb64924bfa571f66feb5f6b721273f6b3/nodejs/node/issues/57744 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fec56b1125cbb8081e2421c0c3be72acb64924bfa571f66feb5f6b721273f6b3/nodejs/node/issues/57744 |
| og:image:alt | I think it would be beneficial to consider not stabilizing stripTypeScriptTypes and instead require users to specify a dependency on swc or whatever library they wish. Reason: This enables Node sin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dsherret |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width