René's URL Explorer Experiment


Title: Runtime portability improvements by sliemeobn · Pull Request #478 · swiftwasm/JavaScriptKit · GitHub

Open Graph Title: Runtime portability improvements by sliemeobn · Pull Request #478 · swiftwasm/JavaScriptKit

X Title: Runtime portability improvements by sliemeobn · Pull Request #478 · swiftwasm/JavaScriptKit

Description: as discussed in #477 This PR makes sure the Runtime remains compatible with "isolatedModules" (ie: esbuild, rollup, ...) move the JSBridge stubs out of the plugin template for better reusability I think these changes are good even when the whole "how to best bundle/deploy/build/package" is not fully clear yet.

Open Graph Description: as discussed in #477 This PR makes sure the Runtime remains compatible with "isolatedModules" (ie: esbuild, rollup, ...) move the JSBridge stubs out of the plugin template for better reu...

X Description: as discussed in #477 This PR makes sure the Runtime remains compatible with "isolatedModules" (ie: esbuild, rollup, ...) move the JSBridge stubs out of the plugin template for be...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5ab47969-f832-5ac6-592a-d79e0ee088c4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8474:C379C:84C0AC:ACD995:69817E38
html-safe-nonce22ee67b2618a7661d35ec87eea63cad291c7708706f1b9bceae3f62477832893
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDc0OkMzNzlDOjg0QzBBQzpBQ0Q5OTU6Njk4MTdFMzgiLCJ2aXNpdG9yX2lkIjoiMjkzNzI0NTI2NDExMDUxNzgxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac502cbc043d565110ecdd18490553c81c531bcaceef15a66720f709f8ba32e643
hovercard-subject-tagpull_request:3102349070
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/swiftwasm/JavaScriptKit/pull/478/files
twitter:imagehttps://avatars.githubusercontent.com/u/52261246?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/52261246?s=400&v=4
og:image:altas discussed in #477 This PR makes sure the Runtime remains compatible with "isolatedModules" (ie: esbuild, rollup, ...) move the JSBridge stubs out of the plugin template for better reu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd58d68a7813bbec9c91422c8c35f4af33832d70
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fswiftwasm%2FJavaScriptKit%2Fpull%2F478%2Ffiles
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fswiftwasm%2FJavaScriptKit%2Fpull%2F478%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=swiftwasm%2FJavaScriptKit
Reloadhttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes
Reloadhttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes
Reloadhttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes
swiftwasm https://patch-diff.githubusercontent.com/swiftwasm
JavaScriptKithttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit
Please reload this pagehttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fswiftwasm%2FJavaScriptKit
Fork 63 https://patch-diff.githubusercontent.com/login?return_to=%2Fswiftwasm%2FJavaScriptKit
Star 836 https://patch-diff.githubusercontent.com/login?return_to=%2Fswiftwasm%2FJavaScriptKit
Code https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit
Issues 33 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/issues
Pull requests 10 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pulls
Actions https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/actions
Projects 0 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/projects
Security 0 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/security
Insights https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pulse
Code https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit
Issues https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/issues
Pull requests https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pulls
Actions https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/actions
Projects https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/projects
Security https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/security
Insights https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fswiftwasm%2FJavaScriptKit%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fswiftwasm%2FJavaScriptKit%2Fissues%2Fnew%2Fchoose
sliemeobnhttps://patch-diff.githubusercontent.com/sliemeobn
swiftwasm:mainhttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/tree/main
sliemeobn:runtime-portability-improvementshttps://patch-diff.githubusercontent.com/sliemeobn/JavaScriptKit/tree/runtime-portability-improvements
Conversation 9 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478
Commits 3 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/commits
Checks 10 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/checks
Files changed https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/files
Please reload this pagehttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes
Runtime portability improvements https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#top
Show all changes 3 commits https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/files
522f7fb fixed runtime module build sliemeobn Dec 15, 2025 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/commits/522f7fb1b6b01ae1f9af52e9f5ed7a30420d6d80
3a28bef move BridgeJS stubs to runtime bundle sliemeobn Dec 15, 2025 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/commits/3a28bef5a7804b20c66da25c23a8b7afa89a66af
80433bd this messes up regenerate_swiftpm_resources because of the enums.... sliemeobn Dec 15, 2025 https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/commits/80433bd7b50e555f06d7bf9f8fb818311571bdeb
Clear filters https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/files
Please reload this pagehttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes
Please reload this pagehttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes
instantiate.js https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-f8cc6e6c9e8711947483bcbda477058afeece7d9930dbfe7d9bad373c077985f
runtime.d.ts https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-6df202640d0f64d58c90ac2b4897906e185d8ef71e88b93acff4ae41de9fe0d8
runtime.mjs https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-1d7e36552957830ea7da3976dea90e15239acf85417ef600ff78bb7c14a354b6
bridge-js.ts https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-4baf0c55d895dcd9ca833d3d192d5ff1b2ebeccbecaeb59f3219ff1406c7c5e3
index.ts https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-a60badd06207b87dd4daadc7220175564897de3d1778271dee9a939dc9127805
package-lock.json https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
package.json https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
Plugins/PackageToJS/Templates/instantiate.jshttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-f8cc6e6c9e8711947483bcbda477058afeece7d9930dbfe7d9bad373c077985f
View file https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/blob/80433bd7b50e555f06d7bf9f8fb818311571bdeb/Plugins/PackageToJS/Templates/instantiate.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-f8cc6e6c9e8711947483bcbda477058afeece7d9930dbfe7d9bad373c077985f
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-f8cc6e6c9e8711947483bcbda477058afeece7d9930dbfe7d9bad373c077985f
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-f8cc6e6c9e8711947483bcbda477058afeece7d9930dbfe7d9bad373c077985f
Plugins/PackageToJS/Templates/runtime.d.tshttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-6df202640d0f64d58c90ac2b4897906e185d8ef71e88b93acff4ae41de9fe0d8
View file https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/blob/80433bd7b50e555f06d7bf9f8fb818311571bdeb/Plugins/PackageToJS/Templates/runtime.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-6df202640d0f64d58c90ac2b4897906e185d8ef71e88b93acff4ae41de9fe0d8
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-6df202640d0f64d58c90ac2b4897906e185d8ef71e88b93acff4ae41de9fe0d8
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-6df202640d0f64d58c90ac2b4897906e185d8ef71e88b93acff4ae41de9fe0d8
Plugins/PackageToJS/Templates/runtime.mjshttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-1d7e36552957830ea7da3976dea90e15239acf85417ef600ff78bb7c14a354b6
View file https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/blob/80433bd7b50e555f06d7bf9f8fb818311571bdeb/Plugins/PackageToJS/Templates/runtime.mjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-1d7e36552957830ea7da3976dea90e15239acf85417ef600ff78bb7c14a354b6
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-1d7e36552957830ea7da3976dea90e15239acf85417ef600ff78bb7c14a354b6
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-1d7e36552957830ea7da3976dea90e15239acf85417ef600ff78bb7c14a354b6
Runtime/src/bridge-js.tshttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-4baf0c55d895dcd9ca833d3d192d5ff1b2ebeccbecaeb59f3219ff1406c7c5e3
View file https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/blob/80433bd7b50e555f06d7bf9f8fb818311571bdeb/Runtime/src/bridge-js.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/{{ revealButtonHref }}
Runtime/src/index.tshttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-a60badd06207b87dd4daadc7220175564897de3d1778271dee9a939dc9127805
View file https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/blob/80433bd7b50e555f06d7bf9f8fb818311571bdeb/Runtime/src/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-a60badd06207b87dd4daadc7220175564897de3d1778271dee9a939dc9127805
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-a60badd06207b87dd4daadc7220175564897de3d1778271dee9a939dc9127805
package-lock.jsonhttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
View file https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/blob/80433bd7b50e555f06d7bf9f8fb818311571bdeb/package-lock.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes
package.jsonhttps://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
View file https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/blob/80433bd7b50e555f06d7bf9f8fb818311571bdeb/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/swiftwasm/JavaScriptKit/pull/478/changes#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
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.