JavaScriptKit icon indicating copy to clipboard operation
JavaScriptKit copied to clipboard

Runtime portability improvements

Open sliemeobn opened this issue 3 weeks ago • 1 comments

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.

sliemeobn avatar Dec 15 '25 12:12 sliemeobn

unfortunately this tsconfig setting "isolatedModules": true messes up the codegen for export const enum Kind I reverted it for now, but maybe we should add CI checks for the Runtime "buildability" somehow?

sliemeobn avatar Dec 15 '25 13:12 sliemeobn

I still do not want to expose the Runtime code as an API because maintaining a stable interface at that layer requires much effort.

kateinoigakukun avatar Dec 19 '25 14:12 kateinoigakukun

@kateinoigakukun I understand the concern. I don't think this PR changes anything in that regard.

sliemeobn avatar Dec 21 '25 15:12 sliemeobn