René's URL Explorer Experiment


Title: Add `--default-platform` option to `package js` by t089 · Pull Request #457 · swiftwasm/JavaScriptKit · GitHub

Open Graph Title: Add `--default-platform` option to `package js` by t089 · Pull Request #457 · swiftwasm/JavaScriptKit

X Title: Add `--default-platform` option to `package js` by t089 · Pull Request #457 · swiftwasm/JavaScriptKit

Description: Currently swift package js only generates code for the "browser" platform. This PR adds a --platform node|browser [default: browser] argument that lets you control this behaviour. In case of node i...

Open Graph Description: Currently swift package js only generates code for the "browser" platform. This PR adds a --platform node|browser [default: browser] argument that lets you control this behaviour. In case...

X Description: Currently swift package js only generates code for the "browser" platform. This PR adds a --platform node|browser [default: browser] argument that lets you control this behaviour....

Opengraph URL: https://github.com/swiftwasm/JavaScriptKit/pull/457

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:bf840cfc-d11e-7953-4db6-e7122437500b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC620:3A3C79:1968EE1:243E81C:697A49C1
html-safe-noncecfe6c3e8c7ebe9b2acb6446fc2858be5645920d3c1ff2857931c211cd200cd2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjIwOjNBM0M3OToxOTY4RUUxOjI0M0U4MUM6Njk3QTQ5QzEiLCJ2aXNpdG9yX2lkIjoiMjExNzI1MzE3NDU2NDM3NDk3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac352d9c83872b87e2175fcd510f470fbc3baba82f11429c23276d2b79e26ecee3
hovercard-subject-tagpull_request:2926326543
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/swiftwasm/JavaScriptKit/457/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/dbf01c69300ea0943b75a6a6c9c1e3cd91fb316d30fdaa8b88079789d6fc8cea/swiftwasm/JavaScriptKit/pull/457
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dbf01c69300ea0943b75a6a6c9c1e3cd91fb316d30fdaa8b88079789d6fc8cea/swiftwasm/JavaScriptKit/pull/457
og:image:altCurrently swift package js only generates code for the "browser" platform. This PR adds a --platform node|browser [default: browser] argument that lets you control this behaviour. In case...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamet089
hostnamegithub.com
expected-hostnamegithub.com
None553d32486a978372da5772d723ffbf66cac04403ab1794b7225c035f1d23252c
turbo-cache-controlno-preview
go-importgithub.com/swiftwasm/JavaScriptKit git https://github.com/swiftwasm/JavaScriptKit.git
octolytics-dimension-user_id49500752
octolytics-dimension-user_loginswiftwasm
octolytics-dimension-repository_id244832006
octolytics-dimension-repository_nwoswiftwasm/JavaScriptKit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id244832006
octolytics-dimension-repository_network_root_nwoswiftwasm/JavaScriptKit
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8d7fdc30d680a0be278b8d9916215e64c987f09a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/swiftwasm/JavaScriptKit/pull/457#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fswiftwasm%2FJavaScriptKit%2Fpull%2F457
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fswiftwasm%2FJavaScriptKit%2Fpull%2F457
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=swiftwasm%2FJavaScriptKit
Reloadhttps://github.com/swiftwasm/JavaScriptKit/pull/457
Reloadhttps://github.com/swiftwasm/JavaScriptKit/pull/457
Reloadhttps://github.com/swiftwasm/JavaScriptKit/pull/457
swiftwasm https://github.com/swiftwasm
JavaScriptKithttps://github.com/swiftwasm/JavaScriptKit
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
Notifications https://github.com/login?return_to=%2Fswiftwasm%2FJavaScriptKit
Fork 61 https://github.com/login?return_to=%2Fswiftwasm%2FJavaScriptKit
Star 833 https://github.com/login?return_to=%2Fswiftwasm%2FJavaScriptKit
Code https://github.com/swiftwasm/JavaScriptKit
Issues 30 https://github.com/swiftwasm/JavaScriptKit/issues
Pull requests 11 https://github.com/swiftwasm/JavaScriptKit/pulls
Actions https://github.com/swiftwasm/JavaScriptKit/actions
Projects 0 https://github.com/swiftwasm/JavaScriptKit/projects
Security 0 https://github.com/swiftwasm/JavaScriptKit/security
Insights https://github.com/swiftwasm/JavaScriptKit/pulse
Code https://github.com/swiftwasm/JavaScriptKit
Issues https://github.com/swiftwasm/JavaScriptKit/issues
Pull requests https://github.com/swiftwasm/JavaScriptKit/pulls
Actions https://github.com/swiftwasm/JavaScriptKit/actions
Projects https://github.com/swiftwasm/JavaScriptKit/projects
Security https://github.com/swiftwasm/JavaScriptKit/security
Insights https://github.com/swiftwasm/JavaScriptKit/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fswiftwasm%2FJavaScriptKit%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fswiftwasm%2FJavaScriptKit%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/swiftwasm/JavaScriptKit/pull/457#issue-comment-box
kateinoigakukunhttps://github.com/kateinoigakukun
swiftwasm:mainhttps://github.com/swiftwasm/JavaScriptKit/tree/main
t089:platform-arghttps://github.com/t089/JavaScriptKit/tree/platform-arg
Add --default-platform option to package js https://github.com/swiftwasm/JavaScriptKit/pull/457#top
kateinoigakukunhttps://github.com/kateinoigakukun
swiftwasm:mainhttps://github.com/swiftwasm/JavaScriptKit/tree/main
t089:platform-arghttps://github.com/t089/JavaScriptKit/tree/platform-arg
Conversation 7 https://github.com/swiftwasm/JavaScriptKit/pull/457
Commits 11 https://github.com/swiftwasm/JavaScriptKit/pull/457/commits
Checks 9 https://github.com/swiftwasm/JavaScriptKit/pull/457/checks
Files changed https://github.com/swiftwasm/JavaScriptKit/pull/457/files
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.co/hiddenchars
https://github.com/swiftwasm/JavaScriptKit/pull/{{ revealButtonHref }}
https://github.com/t089
t089https://github.com/t089
Oct 18, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#issue-3528258703
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
t089https://github.com/t089
October 18, 2025 09:34https://github.com/swiftwasm/JavaScriptKit/pull/457#commits-pushed-f60bfd6
https://github.com/t089
adds a --platform flag to js to control the target platform of the ge…https://github.com/swiftwasm/JavaScriptKit/pull/457/commits/f60bfd699898fbb33d05a397286e255f31433c5d
f60bfd6https://github.com/swiftwasm/JavaScriptKit/pull/457/commits/f60bfd699898fbb33d05a397286e255f31433c5d
https://github.com/t089
Improve template code to better support nodehttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/fa6e32199343618c048f65ef22e945f0e879a8f1
fa6e321https://github.com/swiftwasm/JavaScriptKit/pull/457/commits/fa6e32199343618c048f65ef22e945f0e879a8f1
https://github.com/t089
Add devDependency @types/node so TypeScript can understand Node.js APIshttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/c3c342427d55be70ee3b464e6009acef728ffdc3
c3c3424https://github.com/swiftwasm/JavaScriptKit/pull/457/commits/c3c342427d55be70ee3b464e6009acef728ffdc3
https://github.com/t089
run tscCheck on preprocessed templateshttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/eed636d73b00ed96604685b3fc3b290d46cd2691
eed636dhttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/eed636d73b00ed96604685b3fc3b290d46cd2691
https://github.com/t089
update snapshot saltshttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/a1b912b9b29e78b828db78df34fb9c3a5a72fd50
a1b912bhttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/a1b912b9b29e78b828db78df34fb9c3a5a72fd50
https://github.com/t089
Merge branch 'main' into platform-arghttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/e56a81e30953e03a0c800748f4370abe02d9ca31
e56a81ehttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/e56a81e30953e03a0c800748f4370abe02d9ca31
https://github.com/t089
add Plugin/PackageToJS/Templates to bootstraphttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/83b31fa305276bf9a8d502f5b00cab24f5000139
83b31fahttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/83b31fa305276bf9a8d502f5b00cab24f5000139
https://github.com/MaxDesiatov
MaxDesiatovhttps://github.com/MaxDesiatov
Oct 20, 2025 https://github.com/swiftwasm/JavaScriptKit/pull/457#pullrequestreview-3356543969
View reviewed changes https://github.com/swiftwasm/JavaScriptKit/pull/457/files/83b31fa305276bf9a8d502f5b00cab24f5000139
Plugins/PackageToJS/Sources/PackageToJS.swifthttps://github.com/swiftwasm/JavaScriptKit/pull/457/files/83b31fa305276bf9a8d502f5b00cab24f5000139#diff-97d865fe8c116f399e41dc4248b079dbafd7c3fcb9f447180940424be2364c3e
MaxDesiatovhttps://github.com/MaxDesiatov
Oct 20, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#discussion_r2445077593
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
t089https://github.com/t089
Oct 20, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#discussion_r2445488137
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.com/MaxDesiatov
MaxDesiatovhttps://github.com/MaxDesiatov
Oct 20, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#issuecomment-3422147020
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.com/MaxDesiatov
MaxDesiatovhttps://github.com/MaxDesiatov
enhancement https://github.com/swiftwasm/JavaScriptKit/issues?q=state%3Aopen%20label%3Aenhancement
dependencies https://github.com/swiftwasm/JavaScriptKit/issues?q=state%3Aopen%20label%3Adependencies
Oct 20, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#event-20380795148
t089https://github.com/t089
October 20, 2025 17:42https://github.com/swiftwasm/JavaScriptKit/pull/457#commits-pushed-4e8bc2f
https://github.com/t089
formattinghttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/4e8bc2f1b11d1a1b54fb052395c897e9df30d397
4e8bc2fhttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/4e8bc2f1b11d1a1b54fb052395c897e9df30d397
https://github.com/t089
model platform as enumhttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/76ee898ddb25807d0a62461b976eb435e5576d4d
76ee898https://github.com/swiftwasm/JavaScriptKit/pull/457/commits/76ee898ddb25807d0a62461b976eb435e5576d4d
https://github.com/MaxDesiatov
MaxDesiatovhttps://github.com/MaxDesiatov
Oct 20, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#event-20388377392
https://github.com/MaxDesiatov
MaxDesiatovhttps://github.com/MaxDesiatov
Oct 20, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#event-20388380032
https://github.com/MaxDesiatov
MaxDesiatovhttps://github.com/MaxDesiatov
Oct 20, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#issuecomment-3423614821
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.com/t089
use browser as default value for platformhttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/27dadd9c6c280e4549d84ce26800d3dc94d3f18f
27dadd9https://github.com/swiftwasm/JavaScriptKit/pull/457/commits/27dadd9c6c280e4549d84ce26800d3dc94d3f18f
https://github.com/kateinoigakukun
kateinoigakukunhttps://github.com/kateinoigakukun
Oct 20, 2025 https://github.com/swiftwasm/JavaScriptKit/pull/457#pullrequestreview-3358332121
View reviewed changes https://github.com/swiftwasm/JavaScriptKit/pull/457/files/27dadd9c6c280e4549d84ce26800d3dc94d3f18f
kateinoigakukunhttps://github.com/kateinoigakukun
https://github.com/swiftwasm/JavaScriptKit/pull/457#pullrequestreview-3358332121
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.com/t089
t089https://github.com/t089
Oct 21, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#issuecomment-3424671206
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.com/kateinoigakukun
kateinoigakukunhttps://github.com/kateinoigakukun
October 24, 2025 06:13https://github.com/swiftwasm/JavaScriptKit/pull/457#event-20473956922
https://github.com/kateinoigakukun
PackageToJS: Rename --platform to --default-platform and fix testshttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/617110edf7c63fbc45810c2ed21b3822d2ff1840
617110ehttps://github.com/swiftwasm/JavaScriptKit/pull/457/commits/617110edf7c63fbc45810c2ed21b3822d2ff1840
https://github.com/kateinoigakukun
kateinoigakukunhttps://github.com/kateinoigakukun
force-pushedhttps://github.com/swiftwasm/JavaScriptKit/compare/ab3c40442f7e4b29ffcdab4222a8d188a60600fb..617110edf7c63fbc45810c2ed21b3822d2ff1840
ab3c404https://github.com/swiftwasm/JavaScriptKit/commit/ab3c40442f7e4b29ffcdab4222a8d188a60600fb
617110ehttps://github.com/swiftwasm/JavaScriptKit/commit/617110edf7c63fbc45810c2ed21b3822d2ff1840
Compare https://github.com/swiftwasm/JavaScriptKit/compare/ab3c40442f7e4b29ffcdab4222a8d188a60600fb..617110edf7c63fbc45810c2ed21b3822d2ff1840
October 24, 2025 07:33https://github.com/swiftwasm/JavaScriptKit/pull/457#event-20475565510
https://github.com/kateinoigakukun
kateinoigakukunhttps://github.com/kateinoigakukun
Oct 24, 2025 https://github.com/swiftwasm/JavaScriptKit/pull/457#pullrequestreview-3375009129
View reviewed changes https://github.com/swiftwasm/JavaScriptKit/pull/457/files/617110edf7c63fbc45810c2ed21b3822d2ff1840
kateinoigakukunhttps://github.com/kateinoigakukun
https://github.com/swiftwasm/JavaScriptKit/pull/457#pullrequestreview-3375009129
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.com/kateinoigakukun
kateinoigakukunhttps://github.com/kateinoigakukun
84243a4https://github.com/swiftwasm/JavaScriptKit/commit/84243a4c66d47e17c540bbdc17ef49f191840a07
Oct 24, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#event-20476250308
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.com/kateinoigakukun
kateinoigakukunhttps://github.com/kateinoigakukun
Oct 24, 2025https://github.com/swiftwasm/JavaScriptKit/pull/457#event-20476253116
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fswiftwasm%2FJavaScriptKit%2Fpull%2F457
https://github.com/MaxDesiatov
MaxDesiatov https://github.com/MaxDesiatov
https://github.com/swiftwasm/JavaScriptKit/pull/457/files/83b31fa305276bf9a8d502f5b00cab24f5000139
https://github.com/kateinoigakukun
kateinoigakukun https://github.com/kateinoigakukun
https://github.com/swiftwasm/JavaScriptKit/pull/457/files/617110edf7c63fbc45810c2ed21b3822d2ff1840
dependencies https://github.com/swiftwasm/JavaScriptKit/issues?q=state%3Aopen%20label%3Adependencies
enhancement https://github.com/swiftwasm/JavaScriptKit/issues?q=state%3Aopen%20label%3Aenhancement
Please reload this pagehttps://github.com/swiftwasm/JavaScriptKit/pull/457
https://github.com/t089
https://github.com/MaxDesiatov
https://github.com/kateinoigakukun
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.